]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-event-flatten - Use __FILE__ to get correct expected filename
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 12 Apr 2022 07:12:11 +0000 (10:12 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Tue, 12 Apr 2022 10:36:23 +0000 (10:36 +0000)
Fixes out of tree buids

Broken in 4f752d381c8e19dd07d1e593996d02294668c8b6

src/lib/test-event-flatten.c

index e2a77a80ecd01bbdce2ab5a8a3661ac23aea5f59..526366c4ae60380edfce80df53f7ae87234c895c 100644 (file)
@@ -355,7 +355,7 @@ static void test_event_strlist_flatten(void)
        event_export(event, dest);
        /* see if it matches .. */
        const char *reference = t_strdup_printf("%"PRIdTIME_T"\t%u"
-                                               "\tstest-event-flatten.c"
+                                               "\ts"__FILE__
                                                "\t%u\tLtest\t3\tl3\tl1\tl2",
                                        event->tv_created.tv_sec,
                                        (unsigned int)event->tv_created.tv_usec,