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)
This commit is contained in:
Lennart Poettering
2026-10-16 17:24:50 +01:00
committed by Luca Boccassi
parent 7a45af6e89
commit 8334118621
+1 -1
View File
@@ -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);