diff options
author | Benjamin Robin <dev@benjarobin.fr> | 2020-05-06 20:32:27 +0200 |
---|---|---|
committer | Benjamin Robin <dev@benjarobin.fr> | 2020-05-06 23:03:25 +0200 |
commit | 060d9c61b6ee80585082cf5a1e499195c4df8d42 (patch) | |
tree | bfabb89352d3224e7fe7b403546060edfae13099 /src/test/test-alloc-util.c | |
parent | f391597c6712ad90db37fe4a79047a45f4aca86a (diff) | |
download | systemd-060d9c61b6ee80585082cf5a1e499195c4df8d42.tar.gz |
test: Use assert_se() where variables are only checked by assert
Allow to build without any warning with NDEBUG defined
Diffstat (limited to 'src/test/test-alloc-util.c')
-rw-r--r-- | src/test/test-alloc-util.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/test-alloc-util.c b/src/test/test-alloc-util.c index 758b753237..d85f705504 100644 --- a/src/test/test-alloc-util.c +++ b/src/test/test-alloc-util.c @@ -99,13 +99,13 @@ static void test_bool_assign(void) { g = cp; /* cast from pointer */ h = NULL; /* cast from pointer */ - assert(b); - assert(c); - assert(d); - assert(e); - assert(!f); - assert(g); - assert(!h); + assert_se(b); + assert_se(c); + assert_se(d); + assert_se(e); + assert_se(!f); + assert_se(g); + assert_se(!h); } static int cleanup_counter = 0; |