mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
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