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/journal/test-journal-stream.c | |
parent | 714af6af8a912650f9129f8b056ed92589443060 (diff) |
tests: use assert_se instead of assert
Otherwise they can be optimized away with -DNDEBUG
Diffstat (limited to 'src/journal/test-journal-stream.c')
-rw-r--r-- | src/journal/test-journal-stream.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/test-journal-stream.c b/src/journal/test-journal-stream.c index 8ccd813445..3996e778e6 100644 --- a/src/journal/test-journal-stream.c +++ b/src/journal/test-journal-stream.c @@ -28,13 +28,14 @@ #include "journal-internal.h" #include "util.h" #include "log.h" +#include "macro.h" #define N_ENTRIES 200 static void verify_contents(sd_journal *j, unsigned skip) { unsigned i; - assert(j); + assert_se(j); i = 0; SD_JOURNAL_FOREACH(j) { |