From 833411862109f98c9f587e6df33853c8357e977d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 9 Oct 2026 09:22:02 +0200 Subject: [PATCH] test-resolved-packet: use assert_se() for the string comparison With assert() the comparison is compiled out in NDEBUG builds, leaving twilio_reply_string unused, which breaks the build with -Werror. (cherry picked from commit e1577aaed620793fdec39ded861b873e17627f46) --- src/resolve/test-resolved-packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolve/test-resolved-packet.c b/src/resolve/test-resolved-packet.c index 1ce7aa65ad..e94dc55b1d 100644 --- a/src/resolve/test-resolved-packet.c +++ b/src/resolve/test-resolved-packet.c @@ -206,7 +206,7 @@ TEST(naptr) { assert_se(sd_json_variant_append_array(&a, v) >= 0); } - assert(streq(joined, twilio_reply_string)); + assert_se(streq(joined, twilio_reply_string)); _cleanup_(sd_json_variant_unrefp) sd_json_variant *parsed = NULL; assert_se(sd_json_parse(twilio_reply_json, /* flags= */ 0, &parsed, /* reterr_line= */ NULL, /* ret_column= */ NULL) >= 0);