diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-10-20 11:56:25 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-10-20 11:56:25 +0200 |
| commit | 0f275a1e3123f6031548355af97e22e067abb4a1 (patch) | |
| tree | 0e7b37923f04dbf0115f1aa6bf6b6f3a45acf6e2 | |
| parent | 1e8a84cb075abcdc1c82927f78a1c81b9303e3ca (diff) | |
| download | vis-0f275a1e3123f6031548355af97e22e067abb4a1.tar.gz vis-0f275a1e3123f6031548355af97e22e067abb4a1.tar.xz | |
test/core: avoid puts("") to print a new line
| -rw-r--r-- | core/tap.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
