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:
Yu Watanabe
2025-08-02 04:42:33 +09:00
committed by Luca Boccassi
parent ca6c192f9c
commit 100a98960a

File diff suppressed because it is too large Load Diff