summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-13 07:35:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:30 -0500
commitcac47350c23793842cc2a5f5a0f17da739044729 (patch)
tree3a467d49682d6620e27affa5820979b17b471cad /source4/lib/replace
parent9768393b3b91b8e508beae30e7e8bd942292b7f0 (diff)
downloadsamba-cac47350c23793842cc2a5f5a0f17da739044729.tar.gz
samba-cac47350c23793842cc2a5f5a0f17da739044729.tar.bz2
samba-cac47350c23793842cc2a5f5a0f17da739044729.zip
r18444: return the correct value on error
metze (This used to be commit d65e94fea910ff435b5cb6fe146f81b01df9abf6)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/test/os2_delete.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/replace/test/os2_delete.c b/source4/lib/replace/test/os2_delete.c
index c73b7e54cd..641b8c8d93 100644
--- a/source4/lib/replace/test/os2_delete.c
+++ b/source4/lib/replace/test/os2_delete.c
@@ -22,7 +22,6 @@
static int test_readdir_os2_delete_ret;
#define FAILED(d) (fprintf(stderr, "Failed for %s - %s\n", d, strerror(errno)), test_readdir_os2_delete_ret = 1, 1)
-#define CHECK do { if (test_readdir_os2_delete_ret != 0) return test_readdir_os2_delete_ret; } while (0)
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
@@ -84,6 +83,8 @@ int test_readdir_os2_delete(void)
DIR *d;
struct dirent *de;
+ test_readdir_os2_delete_ret = 0;
+
cleanup();
create_files();
@@ -106,5 +107,5 @@ int test_readdir_os2_delete(void)
rmdir(TESTDIR) == 0 || FAILED("rmdir");
- return 0;
+ return test_readdir_os2_delete_ret;
}