Skip to content

Commit c7fdbec

Browse files
authored
Rollup merge of #151375 - terminal_width_independence, r=lqd
Fix terminal width dependent tests [#t-compiler > What is -Zui-testing=no and why are we using it](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/What.20is.20-Zui-testing.3Dno.20and.20why.20are.20we.20using.20it/with/568842970) See zulip thread. I've verified locally that this lets me run the ui test suite without problems even with a very thin terminal 😆
2 parents 23f43d8 + 4bd81df commit c7fdbec

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/tests/ui.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ prefixing each source line are replaced with `LL`). In extremely rare
139139
situations, this mode can be disabled with the directive `//@
140140
compile-flags: -Z ui-testing=no`.
141141

142+
When using `-Z ui-testing=no` the `--diagnostic-width` argument should also
143+
be set to avoid tests failing or passing depending on the width of the terminal
144+
from which the UI test suite is being run.
145+
142146
Note: The line and column numbers for `-->` lines pointing to the test are *not*
143147
normalized, and left as-is. This ensures that the compiler continues to point to
144148
the correct location, and keeps the stderr files readable. Ideally all

0 commit comments

Comments
 (0)