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/resolve/test-dns-domain.c | |
parent | 714af6af8a912650f9129f8b056ed92589443060 (diff) |
tests: use assert_se instead of assert
Otherwise they can be optimized away with -DNDEBUG
Diffstat (limited to 'src/resolve/test-dns-domain.c')
-rw-r--r-- | src/resolve/test-dns-domain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/test-dns-domain.c b/src/resolve/test-dns-domain.c index dfe2a44eae..ebc8d98fce 100644 --- a/src/resolve/test-dns-domain.c +++ b/src/resolve/test-dns-domain.c @@ -20,6 +20,7 @@ ***/ #include "log.h" +#include "macro.h" #include "resolved-dns-domain.h" static void test_dns_label_unescape_one(const char *what, const char *expect, size_t buffer_sz, int ret) { @@ -55,7 +56,7 @@ static void test_dns_label_escape_one(const char *what, size_t l, const char *ex int r; r = dns_label_escape(what, l, &t); - assert(r == ret); + assert_se(r == ret); if (r < 0) return; |