Skip to content

Commit 4bd81df

Browse files
committed
Fix terminal dependent tests
1 parent d7c3d63 commit 4bd81df

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)