summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
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;
}