You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Put this in a blank zig project and run zig build test. This causes this output:
run test: error: 'test_0' failed: New line!
/home/emma/zig-bugs/newline/src/main.zig:7:5: 0x20efe9 in test_0 (test)
return error.ThisIsAnError;
^
run test: error: m
First, the leading newline before the message is stripped, and second an erroneous run test: error: m is printed.
Expected Behavior
Expected an output like this:
run test: error: 'test_0' failed:
New line!
/home/emma/zig-bugs/newline/src/main.zig:7:5: 0x20efe9 in test_0 (test)
return error.ThisIsAnError;
^
The text was updated successfully, but these errors were encountered:
ieeemma
added
the
bug
Observed behavior contradicts documented or intended behavior
label
May 4, 2023
since #14647 stdout is reserved for the runner in tests and it expects tests not to print. the issue is a discussion to change (or not) that assumption
Zig Version
0.11.0-dev.2969+855493bb8
Steps to Reproduce and Observed Behavior
Put this in a blank zig project and run
zig build test
. This causes this output:First, the leading newline before the message is stripped, and second an erroneous
run test: error: m
is printed.Expected Behavior
Expected an output like this:
The text was updated successfully, but these errors were encountered: