test-dns-answer: fix misuse of ASSERT_TRUE/FALSE()
E.g. dns_answer_match_key() may return negative errno, hence we should use ASSERT_OK_POSITIVE/ZERO(). This also has bunch of cleanups: - call functions in ASSERT_NOT_NULL(), - add short comments for constant function arguments, - merge several test cases, - use memstream, rather than temporal files.
This commit is contained in:
committed by
Luca Boccassi
parent
ca6c192f9c
commit
100a98960a
+342
-677
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user