]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-test: test-common - Improve test_assert_memcmp() failure output for easier compa...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sat, 14 Feb 2026 01:16:43 +0000 (02:16 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 18 Feb 2026 09:03:40 +0000 (09:03 +0000)
src/lib-test/test-common.c

index afe11a2ea392284012acd780e7ef2fd5d8f90eb5..7ffa195c56069b2c0d03e28ea00650d82204010c 100644 (file)
@@ -118,7 +118,8 @@ void test_assert_failed_memcmp_idx(const char *code, const char *file, unsigned
                printf("(#%lld) failed: %s\n", i, code);
        printf("        \"");
        print_memcmp_data(src, len);
-       printf("\" != \"");
+       printf("\" != \n");
+       printf("        \"");
        print_memcmp_data(dst, len);
        printf("\" (len == %zu)\n", len);
        fflush(stdout);