[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 5/7] tools/tests/common: ensure error messages have a newline



Otherwise messages from the next test will end up on the same line as an
error message from a previous test.
(calling `fail` is not fatal).

Signed-off-by: Edwin Török <edwin.torok@xxxxxxxxxx>
---
 tools/tests/common/tests.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/tests/common/tests.h b/tools/tests/common/tests.h
index f0df616e3e..add847a46a 100644
--- a/tools/tests/common/tests.h
+++ b/tools/tests/common/tests.h
@@ -6,12 +6,12 @@ extern unsigned int nr_failures;
 #define fail(fmt, ...)                          \
 ({                                              \
     nr_failures++;                              \
-    (void)printf(fmt, ##__VA_ARGS__);           \
+    (void)printf(fmt"\n", ##__VA_ARGS__);           \
 })
 
 #define verify(exp, fmt, args...) \
 while (!(exp)) { \
-    printf(fmt, ## args); \
+    printf(fmt"\n", ## args); \
     exit(EX_SOFTWARE); \
 }
 
-- 
2.47.3




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.