mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 18:30:06 +00:00
Restructure core:terminal for better Windows support
This commit is contained in:
@@ -214,10 +214,6 @@ runner :: proc(internal_tests: []Internal_Test) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
when ODIN_OS == .Windows {
|
||||
console_ansi_init()
|
||||
}
|
||||
|
||||
stdout := io.to_writer(os.stream_from_handle(os.stdout))
|
||||
stderr := io.to_writer(os.stream_from_handle(os.stderr))
|
||||
|
||||
@@ -981,9 +977,5 @@ 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user