From b895c1866efe391c5e7d7a724c06d19341b7e455 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 3 May 2018 14:28:01 +0200 Subject: [PATCH] test: write newline before check() failure message --- test/shared/test-util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/shared/test-util.h b/test/shared/test-util.h index 314d54b..6cd6808 100644 --- a/test/shared/test-util.h +++ b/test/shared/test-util.h @@ -20,7 +20,8 @@ void no_inline no_return check_fail(const char* message); #define check(expression) \ (void) ((!!(expression)) || \ - (check_fail("Check failed:\n" \ + (check_fail("\n" \ + "Check failed:\n" \ " test: " #expression "\n" \ " file: " __FILE__ "\n" \ " line: " __check_to_string(__LINE__) "\n"), \