diff options
author | Ronny Chevalier <chevalier.ronny@gmail.com> | 2014-11-30 02:16:19 +0100 |
---|---|---|
committer | Ronny Chevalier <chevalier.ronny@gmail.com> | 2014-11-30 02:35:52 +0100 |
commit | 787784c4c1b24a13207d18b415d60483cfbdeaa3 (patch) | |
tree | 66b49b1a8e589fb38aa34d0208e6bc6c0b1a69f2 /src/journal/test-journal-verify.c | |
parent | 30fbcf24460263961855e0ce4d8867fd2af3e149 (diff) |
tests: use assert_se instead of assert
Otherwise they can be optimized away with -DNDEBUG
Diffstat (limited to 'src/journal/test-journal-verify.c')
-rw-r--r-- | src/journal/test-journal-verify.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/journal/test-journal-verify.c b/src/journal/test-journal-verify.c index 3b181c6794..9da120c0bb 100644 --- a/src/journal/test-journal-verify.c +++ b/src/journal/test-journal-verify.c @@ -38,15 +38,15 @@ static void bit_toggle(const char *fn, uint64_t p) { int fd; fd = open(fn, O_RDWR|O_CLOEXEC); - assert(fd >= 0); + assert_se(fd >= 0); r = pread(fd, &b, 1, p/8); - assert(r == 1); + assert_se(r == 1); b ^= 1 << (p % 8); r = pwrite(fd, &b, 1, p/8); - assert(r == 1); + assert_se(r == 1); safe_close(fd); } |