diff options
| author | Eric Huss <eric@huss.org> | 2021-05-29 08:54:51 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2021-05-29 08:54:51 -0700 |
| commit | 4c550bc014cae30a3f0e8a7eb14f216ec26c345e (patch) | |
| tree | 23ee5eb8cfd7c2814b34f528c637002ae0b6856c | |
| parent | e7411a26e4a247c86bb14ab37443bbad35c970b0 (diff) | |
| download | rust-4c550bc014cae30a3f0e8a7eb14f216ec26c345e.tar.gz rust-4c550bc014cae30a3f0e8a7eb14f216ec26c345e.zip | |
Fix incremental-session-fail to work when run as root.
| -rw-r--r-- | src/test/run-make/incremental-session-fail/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/run-make/incremental-session-fail/Makefile b/src/test/run-make/incremental-session-fail/Makefile index 208a1b13a6d..0461bb926e7 100644 --- a/src/test/run-make/incremental-session-fail/Makefile +++ b/src/test/run-make/incremental-session-fail/Makefile @@ -5,9 +5,8 @@ OUTPUT_FILE := $(TMPDIR)/build-output all: echo $(TMPDIR) - mkdir $(SESSION_DIR) # Make it so that rustc will fail to create a session directory. - chmod a-w $(SESSION_DIR) + touch $(SESSION_DIR) # Check exit code is 1 for an error, and not 101 for ICE. $(RUSTC) foo.rs --crate-type=rlib -C incremental=$(SESSION_DIR) > $(OUTPUT_FILE) 2>&1; [ $$? -eq 1 ] $(CGREP) "Could not create incremental compilation crate directory" < $(OUTPUT_FILE) |
