Skip to content

Commit

Permalink
Unrolled build for rust-lang#122999
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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
  • Loading branch information
rust-timer authored Mar 25, 2024
2 parents cb7c636 + 4719293 commit 6b442dc
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 6b442dc

Please sign in to comment.