aboutsummaryrefslogtreecommitdiff
path: root/lib/test_runner.zig
AgeCommit message (Collapse)Author
2022-08-22Revert "test_runner: workaround #1923, isolating error traces in tests"Andrew Kelley
This reverts commit 1a32f2a7f40328799537cc94240a57054a1275bc. Sorry, this workaround is not welcome. Instead, please solve the actual issue by doing the accepted behavior in the compiler itself: > in a catch or else (handling a returned error), if the block does not > try or return error.xyz, set the index to 0 This also applies to if statements, such as the one that test runner is doing just above this hack.
2022-08-22test_runner: workaround #1923, isolating error traces in testsTechcable
Essentially #1923 means "caught" errors still show up in error return traces. The correct fix would require the compiler to fix this, but that could affect performance. For now, simply workaround this issue by clearing the return traces between tests. This means that "caught" errors in one test will not show up in the error traces of other tests.
2022-07-24Fix indexing in the test runner's log formattingLewis Gaul
2022-05-26std.Progress.log: adjust APIAndrew Kelley
Now it will fall back to std.debug.print if there is no tty.
2022-05-17zig test: Add proper detection for Windows consoleYeonJiKun
2022-05-16stage2: disable error return tracing on unsupported targetsVeikka Tuominen
2022-05-06flatten lib/std/special and improve "pkg inside another" logicAndrew Kelley
stage2: change logic for detecting whether the main package is inside the std package. Previously it relied on realpath() which is not portable. This uses resolve() which is how imports already work. * stage2: fix cleanup bug when creating Module * flatten lib/std/special/* to lib/* - this was motivated by making main_pkg_is_inside_std false for compiler_rt & friends. * rename "mini libc" to "universal libc"