Skip to content

Commit

Permalink
Rollup merge of #122999 - Alexendoo:unpretty-avoid-crash-test, r=petr…
Browse files Browse the repository at this point in the history
…ochenkov

Fix unpretty UI test when /tmp does not exist

On Windows this test fails if e.g. `C:\tmp` is created successfully
  • Loading branch information
matthiaskrgr authored Mar 25, 2024
2 parents 877f293 + 4719293 commit 657dd0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/ui/unpretty/avoid-crash.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ normalize-stderr-test "error `.*`" -> "$$ERROR_MESSAGE"
//@ compile-flags: -o/tmp/ -Zunpretty=ast-tree
//@ compile-flags: -o. -Zunpretty=ast-tree

fn main() {}
2 changes: 1 addition & 1 deletion tests/ui/unpretty/avoid-crash.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: failed to write `/tmp/` due to $ERROR_MESSAGE
error: failed to write `.` due to $ERROR_MESSAGE

error: aborting due to 1 previous error

0 comments on commit 657dd0b

Please sign in to comment.