- Timestamp:
- Aug 7, 2009, 12:45:24 PM (17 years ago)
- Location:
- branches/eam_branches/20090715
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Nebulous/nebclient/tests/tests.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715
- Property svn:mergeinfo changed
/trunk (added) merged: 24801-24824,24827-24834,24836-24859,24861-24901,24903-24912,24914-24950,24953-24971,24973-24977,24986-24989,24993-25017
- Property svn:mergeinfo changed
-
branches/eam_branches/20090715/Nebulous/nebclient/tests/tests.c
r24290 r25022 20 20 char *key = "foobarbaz"; 21 21 22 plan_tests( 29);22 plan_tests(31); 23 23 24 24 if (getenv("NEB_SERVER")) { … … 98 98 99 99 char *copies = nebGetXattr(server, key, "user.copies"); 100 neb_ok(server, strcmp(copies, "2") == 0, "get user.copies xattr");100 neb_ok(server, copies != NULL && strcmp(copies, "2") == 0, "get user.copies xattr"); 101 101 char **xattrs = NULL; 102 102 int n_xattrs = nebListXattr(server, key, &xattrs); 103 printf("# %s\n\n", xattrs[0]); 104 neb_ok(server, n_xattrs == 1, "count of xattrs"); 105 neb_ok(server, strcmp(xattrs[0], "user.copies") == 0, "user.copies xattr exists"); 103 neb_ok(server, xattrs != NULL && n_xattrs == 1, "count of xattrs"); 104 neb_ok(server, xattrs != NULL && strcmp(xattrs[0], "user.copies") == 0, "user.copies xattr exists"); 106 105 neb_ok(server, nebRemoveXattr(server, key, "user.copies"), "remove user.copies xattr"); 107 106 … … 138 137 neb_ok(server, nebChmod(server, "movedfile", 0440) == 0, "chmod object"); 139 138 139 // no dead instances to remove 140 neb_ok(server, nebPrune(server, "movedfile") == 0, "prune object"); 141 142 nebReplicate(server, key, NULL, NULL); 143 neb_ok(server, nebThereCanBeOnlyOne(server, "movedfile", NULL) == 0, "reduce instances to only 1"); 144 140 145 if (!nebDelete(server, "movedfile")) { 141 146 diag( "cleanup failed %s\n", nebErr(server));
Note:
See TracChangeset
for help on using the changeset viewer.
