diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-12-23 12:30:21 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-12-23 12:30:28 -0800 |
commit | 916857dae08c499a9016082185a83b6139f2e4b6 (patch) | |
tree | 3cd9b5e347b2d6599466df490ce84c37d27663d7 /src | |
parent | 984d3450891d00de9769af446401acd028bf1c1d (diff) | |
download | teliva-916857dae08c499a9016082185a83b6139f2e4b6.tar.gz |
cleaner test message
Was printing over passing tests for some reason.
Diffstat (limited to 'src')
-rw-r--r-- | src/lua.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lua.c b/src/lua.c index 0c388be..feb4e1a 100644 --- a/src/lua.c +++ b/src/lua.c @@ -359,10 +359,9 @@ int run_tests(lua_State *L) { lua_pop(L, 1); if (num_failures == 0) return 0; if (num_failures == 1) - printf("1 failure"); + addstr("1 failure"); else - printf("%d failures", num_failures); - fflush(stdout); + printw("%d failures", num_failures); getch(); /* take first failure back to developer mode */ lua_getglobal(L, "teliva_first_failure"); |