]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
updated test to cover "." directory stat
authorBrian Chrisman <brchrisman@gmail.com>
Thu, 12 May 2011 05:26:47 +0000 (22:26 -0700)
committerSage Weil <sage@newdream.net>
Thu, 12 May 2011 15:50:13 +0000 (08:50 -0700)
Signed-off-by: Brian Chrisman <brchrisman@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
src/client/testceph.cc

index da4b7a217f70c5906d75421ab7e26ef417242f4f..520fa750c89c6fa9f08612caace778c4d4e3be2b 100644 (file)
@@ -174,6 +174,23 @@ int main(int argc, const char **argv)
   if (strncmp((char *) aybabtu, aybabtu_reference,7)) {
     cerr << "ceph_getxattr error: no match (" << aybabtu << ") should be (" << aybabtu_reference << cpp_strerror(ret) << std::endl;
   }
+  cout << "Attempting lstat on '/.'" << std::endl;
+  ret = ceph_lstat(cmount, "/.", &stbuf);
+  if (ret) {
+    cerr << "ceph_lstat error: " << cpp_strerror(ret) << std::endl;
+    return 1;
+  } else {
+    cout << "ceph_lstat: success" << std::endl;
+  }
+  cout << "Attempting lstat on '.'" << std::endl;
+  ret = ceph_lstat(cmount, ".", &stbuf);
+  if (ret) {
+    cerr << "ceph_lstat error: " << cpp_strerror(ret) << std::endl;
+    return 1;
+  } else {
+    cout << "ceph_lstat: success" << std::endl;
+  }
+
 
   ceph_shutdown(cmount);