diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-05-20 16:51:24 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-05-20 16:51:24 +0200 |
| commit | 8bffd247b77bf757449d326a4e6ae6cf49167e94 (patch) | |
| tree | 8f5e8031a1f5af0e1076f7e25c08206f4639ad32 /core/testing/runner.odin | |
| parent | e36db15b48091a5924e6c35b220546862c51ed70 (diff) | |
Restore console mode when test runner exits.
Diffstat (limited to 'core/testing/runner.odin')
| -rw-r--r-- | core/testing/runner.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/testing/runner.odin b/core/testing/runner.odin index 83a5ac4e7..db0587370 100644 --- a/core/testing/runner.odin +++ b/core/testing/runner.odin @@ -949,5 +949,9 @@ To partly mitigate this, redirect STDERR to a file or use the -define:ODIN_TEST_ fmt.assertf(err == nil, "Error writing JSON report: %v", err) } + when ODIN_OS == .Windows { + console_ansi_fini() + } + return total_success_count == total_test_count } |