diff options
| author | Alex Macleod <alex@macleod.io> | 2024-03-24 13:57:59 +0000 |
|---|---|---|
| committer | Alex Macleod <alex@macleod.io> | 2024-03-24 14:00:45 +0000 |
| commit | 47192937d42e47cae6b110dcbf755dbfea7956e8 (patch) | |
| tree | dc821fa80fa2ef60a70d26521e8abcb70572cd14 | |
| parent | 4a52e9cc2acf102da113d1b6c712afc5fcf4db13 (diff) | |
| download | rust-47192937d42e47cae6b110dcbf755dbfea7956e8.tar.gz rust-47192937d42e47cae6b110dcbf755dbfea7956e8.zip | |
Fix unpretty UI test when /tmp does not exist
| -rw-r--r-- | tests/ui/unpretty/avoid-crash.rs | 2 | ||||
| -rw-r--r-- | tests/ui/unpretty/avoid-crash.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/unpretty/avoid-crash.rs b/tests/ui/unpretty/avoid-crash.rs index 94aa7e77dcb..2105068617b 100644 --- a/tests/ui/unpretty/avoid-crash.rs +++ b/tests/ui/unpretty/avoid-crash.rs @@ -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() {} diff --git a/tests/ui/unpretty/avoid-crash.stderr b/tests/ui/unpretty/avoid-crash.stderr index 6fa3e8ca630..1c966754e94 100644 --- a/tests/ui/unpretty/avoid-crash.stderr +++ b/tests/ui/unpretty/avoid-crash.stderr @@ -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 |
