]> arthur.barton.de Git - netatalk.git/commitdiff
Fix test
authorFrank Lahm <franklahm@googlemail.com>
Mon, 1 Nov 2010 20:01:24 +0000 (21:01 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Mon, 1 Nov 2010 20:01:24 +0000 (21:01 +0100)
test/afpd/subtests.c
test/afpd/test.c

index d606be80d4e8846302d0df339a0815506491c1b7..7049a7c7d17d06026fa406958396f1a24308e56a 100644 (file)
@@ -48,7 +48,7 @@ int test001_add_x_dirs(const struct vol *vol, cnid_t start, cnid_t end)
     char dirname[20];
     while (start++ < end) {
         sprintf(dirname, "dir%04u", start);
-        dir = dir_new(dirname, dirname, vol, DIRDID_ROOT, htonl(start), bfromcstr(vol->v_path));
+        dir = dir_new(dirname, dirname, vol, DIRDID_ROOT, htonl(start), bfromcstr(vol->v_path), 0);
         if (dir == NULL)
             return -1;
         if (dircache_add(dir) != 0)
index 4ebc2dfd837049e05da57a2fd080a79961d57efb..35f0876a231c5a82e7f893bb3381e70b0e9ccf37 100644 (file)
@@ -1,5 +1,4 @@
 /*
-  $Id: test.c,v 1.1.2.1 2010-02-01 10:56:08 franklahm Exp $
   Copyright (c) 2010 Frank Lahm <franklahm@gmail.com>
 
   This program is free software; you can redistribute it and/or modify
@@ -81,12 +80,12 @@ int main(int argc, char **argv)
     TEST_expr(vol = getvolbyvid(vid), vol != NULL);
 
     /* test dircache.c stuff*/
-    TEST_expr(dir = dir_new("dir", "dir", vol, DIRDID_ROOT, htonl(20), bfromcstr(vol->v_path)),
+    TEST_expr(dir = dir_new("dir", "dir", vol, DIRDID_ROOT, htonl(20), bfromcstr(vol->v_path), 0),
               dir != NULL);
     TEST_int(dircache_add(dir), 0);
     TEST_expr(retdir = dircache_search_by_did(vol, dir->d_did ),
               retdir != NULL && retdir == dir && bstrcmp(retdir->d_u_name, dir->d_u_name) == 0);
-    TEST_expr(retdir = dircache_search_by_name(vol, vol->v_root, "dir", strlen("dir")),
+    TEST_expr(retdir = dircache_search_by_name(vol, vol->v_root, "dir", strlen("dir"), 0),
               retdir != NULL && retdir == dir && bstrcmp(retdir->d_u_name, dir->d_u_name) == 0);
     TEST_int(dir_remove(vol, dir), 0);
     TEST_int(test001_add_x_dirs(vol, 100, 100000), 0);