aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-10-20 11:56:25 +0200
committerMarc André Tanner <mat@brain-dump.org>2020-10-20 11:56:25 +0200
commit0f275a1e3123f6031548355af97e22e067abb4a1 (patch)
tree0e7b37923f04dbf0115f1aa6bf6b6f3a45acf6e2
parent1e8a84cb075abcdc1c82927f78a1c81b9303e3ca (diff)
downloadvis-0f275a1e3123f6031548355af97e22e067abb4a1.tar.gz
vis-0f275a1e3123f6031548355af97e22e067abb4a1.tar.xz
test/core: avoid puts("") to print a new line
-rw-r--r--core/tap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tap.h b/core/tap.h
index f3f934d..2a16ef6 100644
--- a/core/tap.h
+++ b/core/tap.h
@@ -16,7 +16,7 @@ static int exit_status() {
bool _e = (e); \
printf("%sok %d - ", _e ? "" : "not ", ++test_count); \
printf(__VA_ARGS__); \
- puts(""); \
+ printf("\n"); \
if (!_e) { \
failures++; \
printf(" Failed test (%s:%s() at line %d)\n", __FILE__, __func__, __LINE__); \
@@ -32,7 +32,7 @@ static int exit_status() {
while (_n--) { \
printf("ok %d # skip ", ++test_count); \
printf(__VA_ARGS__); \
- puts(""); \
+ printf("\n"); \
} \
} while (0)