Skip to content

Commit 4c550bc

Browse files
committed
Fix incremental-session-fail to work when run as root.
1 parent e7411a2 commit 4c550bc

File tree

1 file changed

+1
-2
lines changed
  • src/test/run-make/incremental-session-fail

1 file changed

+1
-2
lines changed

src/test/run-make/incremental-session-fail/Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ OUTPUT_FILE := $(TMPDIR)/build-output
55

66
all:
77
echo $(TMPDIR)
8-
mkdir $(SESSION_DIR)
98
# Make it so that rustc will fail to create a session directory.
10-
chmod a-w $(SESSION_DIR)
9+
touch $(SESSION_DIR)
1110
# Check exit code is 1 for an error, and not 101 for ICE.
1211
$(RUSTC) foo.rs --crate-type=rlib -C incremental=$(SESSION_DIR) > $(OUTPUT_FILE) 2>&1; [ $$? -eq 1 ]
1312
$(CGREP) "Could not create incremental compilation crate directory" < $(OUTPUT_FILE)

0 commit comments

Comments
 (0)