diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-10-04 23:51:45 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-10-04 23:55:35 +0200 |
commit | bdf7026e9557349cd3eeb291c01655d5f2a55db8 (patch) | |
tree | 10d269fed663e99d659c34e2f8e89fe5b3f55ecd /src/test/test-hashmap.c | |
parent | consoled: add a unit file (diff) | |
download | systemd-bdf7026e9557349cd3eeb291c01655d5f2a55db8.tar.xz systemd-bdf7026e9557349cd3eeb291c01655d5f2a55db8.zip |
test: only use assert_se
The asserts used in the tests should never be allowed to be
optimized away
Diffstat (limited to 'src/test/test-hashmap.c')
-rw-r--r-- | src/test/test-hashmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-hashmap.c b/src/test/test-hashmap.c index f4afbb8e9d..f9072061dd 100644 --- a/src/test/test-hashmap.c +++ b/src/test/test-hashmap.c @@ -522,7 +522,7 @@ static void test_hashmap_steal_first(void) { while ((val = hashmap_steal_first(m))) seen[strlen(val) - 1]++; - assert(seen[0] == 1 && seen[1] == 1 && seen[2] == 1); + assert_se(seen[0] == 1 && seen[1] == 1 && seen[2] == 1); assert_se(hashmap_isempty(m)); } |