]> arthur.barton.de Git - netatalk.git/commitdiff
Disable tests wich need a writable volume
authorFrank Lahm <franklahm@googlemail.com>
Mon, 9 Jul 2012 09:38:25 +0000 (11:38 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Mon, 9 Jul 2012 09:38:25 +0000 (11:38 +0200)
test/afpd/test.c

index 54fc23745a70a8bf519428a8e2f4f174137acf13..1731ddc141fc4ad1ec27b9b9dc8541be7d4d5bdc 100644 (file)
@@ -88,15 +88,20 @@ int main(int argc, char **argv)
     TEST_int(getfiledirparms(&obj, vid, DIRDID_ROOT_PARENT, "test"), 0);
     TEST_int(getfiledirparms(&obj, vid, DIRDID_ROOT, ""), 0);
 
+#if 0
+// this doesn't work anymore since cnid sheme = last (which we use in the test)
+// has been changed to force read-only mode for the volume
     TEST_expr(reti = createdir(&obj, vid, DIRDID_ROOT, "dir1"),
               reti == 0 || reti == AFPERR_EXIST);
 
     TEST_int(getfiledirparms(&obj, vid, DIRDID_ROOT, "dir1"), 0);
+#endif
 /*
   FIXME: this doesn't work although it should. "//" get translated to \000 \000 at means ".."
   ie this should getfiledirparms for DIRDID_ROOT_PARENT -- at least afair!
     TEST_int(getfiledirparms(&configs->obj, vid, DIRDID_ROOT, "//"), 0);
 */
+#if 0
     TEST_int(createfile(&obj, vid, DIRDID_ROOT, "dir1/file1"), 0);
     TEST_int(delete(&obj, vid, DIRDID_ROOT, "dir1/file1"), 0);
     TEST_int(delete(&obj, vid, DIRDID_ROOT, "dir1"), 0);
@@ -104,7 +109,7 @@ int main(int argc, char **argv)
     TEST_int(createfile(&obj, vid, DIRDID_ROOT, "file1"), 0);
     TEST_int(getfiledirparms(&obj, vid, DIRDID_ROOT, "file1"), 0);
     TEST_int(delete(&obj, vid, DIRDID_ROOT, "file1"), 0);
-
+#endif
 
     /* test enumerate.c stuff */
     TEST_int(enumerate(&obj, vid, DIRDID_ROOT), 0);