Skip to content

Commit 657dd0b

Browse files
authored
Rollup merge of #122999 - Alexendoo:unpretty-avoid-crash-test, r=petrochenkov
Fix unpretty UI test when /tmp does not exist On Windows this test fails if e.g. `C:\tmp` is created successfully
2 parents 877f293 + 4719293 commit 657dd0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/unpretty/avoid-crash.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
//@ normalize-stderr-test "error `.*`" -> "$$ERROR_MESSAGE"
2-
//@ compile-flags: -o/tmp/ -Zunpretty=ast-tree
2+
//@ compile-flags: -o. -Zunpretty=ast-tree
33

44
fn main() {}

tests/ui/unpretty/avoid-crash.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: failed to write `/tmp/` due to $ERROR_MESSAGE
1+
error: failed to write `.` due to $ERROR_MESSAGE
22

33
error: aborting due to 1 previous error
44

0 commit comments

Comments
 (0)