[lld] bcef286 - Fix resolution-err.ll
Stella Stamenova via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 13 16:13:06 PDT 2021
Author: Stella Stamenova
Date: 2021-04-13T16:11:58-07:00
New Revision: bcef28621a877805a17be2e36ddb35c4aca6609d
URL: https://github.com/llvm/llvm-project/commit/bcef28621a877805a17be2e36ddb35c4aca6609d
DIFF: https://github.com/llvm/llvm-project/commit/bcef28621a877805a17be2e36ddb35c4aca6609d.diff
LOG: Fix resolution-err.ll
chmod tries to be very helpful on some platforms and prevent naive mistakes, by warning the user. This results in the following error during the test:
```chmod: ...resolution-err.ll.tmp.resolution.txt: new permissions are r--rw-rw-, not r--r--r--```
To fix the test, call chmod with u.
Differential Revision: https://reviews.llvm.org/D100417
Added:
Modified:
lld/test/ELF/lto/resolution-err.ll
Removed:
################################################################################
diff --git a/lld/test/ELF/lto/resolution-err.ll b/lld/test/ELF/lto/resolution-err.ll
index ae073aa1da111..6dfa64b1b8b9e 100644
--- a/lld/test/ELF/lto/resolution-err.ll
+++ b/lld/test/ELF/lto/resolution-err.ll
@@ -2,7 +2,7 @@
; REQUIRES: shell
; RUN: llvm-as %s -o %t.bc
; RUN: touch %t.resolution.txt
-; RUN: chmod -w %t.resolution.txt
+; RUN: chmod u-w %t.resolution.txt
; RUN: not ld.lld -save-temps %t.bc -o %t 2>&1 | FileCheck -DMSG=%errc_EACCES %s
; RUN: rm -f %t.resolution.txt
More information about the llvm-commits
mailing list