diff options
author | Ronny Chevalier <chevalier.ronny@gmail.com> | 2015-01-22 22:53:42 +0100 |
---|---|---|
committer | Ronny Chevalier <chevalier.ronny@gmail.com> | 2015-01-22 23:10:56 +0100 |
commit | 0c0cdb06c139b52ff103287f6909b3daa5b2dc54 (patch) | |
tree | f904cb032c43691d325b6bb19941a2c115a07416 /src/test/test-util.c | |
parent | 714af6af8a912650f9129f8b056ed92589443060 (diff) | |
download | systemd-0c0cdb06c139b52ff103287f6909b3daa5b2dc54.tar.gz |
tests: use assert_se instead of assert
Otherwise they can be optimized away with -DNDEBUG
Diffstat (limited to 'src/test/test-util.c')
-rw-r--r-- | src/test/test-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-util.c b/src/test/test-util.c index a37316b9cb..f2b7038a4d 100644 --- a/src/test/test-util.c +++ b/src/test/test-util.c @@ -1254,11 +1254,11 @@ static void test_execute_directory(void) { execute_directories(dirs, DEFAULT_TIMEOUT_USEC, NULL); - assert(chdir(template_lo) == 0); + assert_se(chdir(template_lo) == 0); assert_se(access("it_works", F_OK) >= 0); assert_se(access("failed", F_OK) < 0); - assert(chdir(template_hi) == 0); + assert_se(chdir(template_hi) == 0); assert_se(access("it_works2", F_OK) >= 0); assert_se(access("failed", F_OK) < 0); |