[PATCH] D100417: Fix resolution-err.ll
Stella Stamenova via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 13 15:27:57 PDT 2021
stella.stamenova created this revision.
Herald added subscribers: steven_wu, hiraditya, emaste.
stella.stamenova requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100417
Files:
lld/test/ELF/lto/resolution-err.ll
Index: lld/test/ELF/lto/resolution-err.ll
===================================================================
--- lld/test/ELF/lto/resolution-err.ll
+++ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100417.337271.patch
Type: text/x-patch
Size: 470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210413/2ab039e7/attachment.bin>
More information about the llvm-commits
mailing list