[Issue 22941] failing unittest should omit stack trace only if assert was thrown directly by the unittest
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 26 15:12:21 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22941
--- Comment #1 from duser at neet.fi ---
seems like the stack trace omitting depends on the formatting of the source
file path given on the command line
% dmd -main -unittest -run test.d
test.d(1): [unittest] oh no
1/1 modules FAILED unittests
% dmd -main -unittest -run ./test.d
core.exception.AssertError at ./test.d(1): oh no
(... stack trace here)
% dmd -main -unittest -run $PWD/test.d
core.exception.AssertError@/home/human/test.d(1): oh no
(... stack trace here)
omitted if the path is just the filename, not omitted if it includes a
directory path
(this explains why i've only seen this happen inconsistently)
--
More information about the Digitalmars-d-bugs
mailing list