Skip to content

Commit 4719293

Browse files
committed
Fix unpretty UI test when /tmp does not exist
1 parent 4a52e9c commit 4719293

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)