From: Timo Sirainen Date: Tue, 30 Jan 2024 20:42:50 +0000 (+0200) Subject: lib-mail: test-imap-envelope - Use test_assert_idx() where possible X-Git-Tag: 2.3.21.1~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0bae091859c905dc335f21eed01347e6b8338672;p=thirdparty%2Fdovecot%2Fcore.git lib-mail: test-imap-envelope - Use test_assert_idx() where possible --- diff --git a/src/lib-imap/test-imap-envelope.c b/src/lib-imap/test-imap-envelope.c index 1f295e58ba..c9b92b4be2 100644 --- a/src/lib-imap/test-imap-envelope.c +++ b/src/lib-imap/test-imap-envelope.c @@ -157,7 +157,7 @@ static void test_imap_envelope_write(void) envlp = msg_parse(pool, test->message); imap_envelope_write(envlp, str); - test_assert(strcmp(str_c(str), test->envelope) == 0); + test_assert_idx(strcmp(str_c(str), test->envelope) == 0, i); pool_unref(&pool); test_end(); @@ -179,12 +179,12 @@ static void test_imap_envelope_parse(void) test_begin(t_strdup_printf("imap envelope parser [%u]", i)); ret = imap_envelope_parse(test->envelope, pool, &envlp, &error); - test_assert(ret); + test_assert_idx(ret, i); if (ret) { str_truncate(str, 0); imap_envelope_write(envlp, str); - test_assert(strcmp(str_c(str), test->envelope) == 0); + test_assert_idx(strcmp(str_c(str), test->envelope) == 0, i); } else { i_error("Invalid envelope: %s", error); }