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
This commit is contained in:
Matthias Krüger 2024-03-25 17:05:35 +01:00 committed by GitHub
commit 657dd0b797
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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() {}

View File

@ -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