[lld] r355382 - [ELF][test] chmod u+w to prevent annoying rm prompt

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 5 01:56:51 PST 2019


Author: maskray
Date: Tue Mar  5 01:56:50 2019
New Revision: 355382

URL: http://llvm.org/viewvc/llvm-project?rev=355382&view=rev
Log:
[ELF][test] chmod u+w to prevent annoying rm prompt

If the permission does not permit writing and the standard input is a
terminal, rm gives an annoying prompt. chmod u+w to make the output
directory easier to delete.

Modified:
    lld/trunk/test/ELF/lto/thinlto-cant-write-index.ll

Modified: lld/trunk/test/ELF/lto/thinlto-cant-write-index.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto-cant-write-index.ll?rev=355382&r1=355381&r2=355382&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto-cant-write-index.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto-cant-write-index.ll Tue Mar  5 01:56:50 2019
@@ -7,8 +7,9 @@
 ; Ensure lld generates error if unable to write to index files
 ; RUN: rm -f %t2.o.thinlto.bc
 ; RUN: touch %t2.o.thinlto.bc
-; RUN: chmod 400 %t2.o.thinlto.bc
+; RUN: chmod u-w %t2.o.thinlto.bc
 ; RUN: not ld.lld --plugin-opt=thinlto-index-only -shared %t1.o %t2.o -o %t3 2>&1 | FileCheck %s
+; RUN: chmod u+w %t2.o.thinlto.bc
 ; CHECK: cannot open {{.*}}2.o.thinlto.bc: {{P|p}}ermission denied
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"




More information about the llvm-commits mailing list