summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-01-02 11:38:24 -0800
committerJeremy Allison <jra@samba.org>2009-01-02 11:38:24 -0800
commit2234173220c51c2e37818149ddf41421672904c0 (patch)
treef41a3f462234afa7f9bbb434e357c9b3a0fbbdad /lib/replace
parent9c92cb763653644e129b0777b3f8fc2f333bb7c6 (diff)
downloadsamba-2234173220c51c2e37818149ddf41421672904c0.tar.gz
samba-2234173220c51c2e37818149ddf41421672904c0.tar.bz2
samba-2234173220c51c2e37818149ddf41421672904c0.zip
Fix warnings in make test code.
Jeremy.
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/test/os2_delete.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/replace/test/os2_delete.c b/lib/replace/test/os2_delete.c
index b45c135355..44efeea08a 100644
--- a/lib/replace/test/os2_delete.c
+++ b/lib/replace/test/os2_delete.c
@@ -30,7 +30,9 @@ static int test_readdir_os2_delete_ret;
static void cleanup(void)
{
/* I'm a lazy bastard */
- system("rm -rf " TESTDIR);
+ if (system("rm -rf " TESTDIR)) {
+ FAILED("system");
+ }
mkdir(TESTDIR, 0700) == 0 || FAILED("mkdir");
}
@@ -118,7 +120,9 @@ int test_readdir_os2_delete(void)
rmdir(TESTDIR) == 0 || FAILED("rmdir");
- system("rm -rf " TESTDIR);
+ if (system("rm -rf " TESTDIR) == -1) {
+ FAILED("system");
+ }
return test_readdir_os2_delete_ret;
}