]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/os/TestLFNIndex.cc
update sources to v12.1.3
[ceph.git] / ceph / src / test / os / TestLFNIndex.cc
index fb7a0c9f97f1779efd8e1e5affd9d520a8083e52..77919999117f49e7c3a7d165ff9c3f36f0bb0572 100644 (file)
@@ -452,6 +452,10 @@ TEST_F(TestLFNIndex, get_mangled_name) {
 
 int main(int argc, char **argv) {
   int fd = ::creat("detect", 0600);
+  if (fd < 0){
+    cerr << "failed to create file detect" << std::endl;
+    return EXIT_FAILURE;
+  }
   int ret = chain_fsetxattr(fd, "user.test", "A", 1);
   ::close(fd);
   ::unlink("detect");