tests: Always put '\n' at the end of VIR_TEST_VERBOSE

Similarly to the previous commit, VIR_TEST_VERBOSE should put
'\n' at the end of each call so that the output is not broken.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Michal Privoznik
2019-08-27 15:56:17 +02:00
parent d07ce21610
commit e3511ee5ec
11 changed files with 86 additions and 85 deletions
+2 -2
View File
@@ -93,10 +93,10 @@ unsigned int virTestGetRegenerate(void);
fprintf(stderr, fmt "\n", ## __VA_ARGS__); \
} while (0)
#define VIR_TEST_VERBOSE(...) \
#define VIR_TEST_VERBOSE(fmt, ...) \
do { \
if (virTestGetVerbose()) \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, fmt "\n", ## __VA_ARGS__); \
} while (0)
char *virTestLogContentAndReset(void);