diff options
author | Fangrui Song <maskray@google.com> | 2019-03-05 09:56:50 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-03-05 09:56:50 +0000 |
commit | 5eaa55f6166fadc7536253fd1dd4a307a130b720 (patch) | |
tree | 2b7c613aaa243c2a2547b53270eb5f3290ce27c2 | |
parent | 816e7b43dcf885a5046f48e51881962c2058d269 (diff) | |
download | bcm5719-llvm-5eaa55f6166fadc7536253fd1dd4a307a130b720.tar.gz bcm5719-llvm-5eaa55f6166fadc7536253fd1dd4a307a130b720.zip |
[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.
llvm-svn: 355382
-rw-r--r-- | lld/test/ELF/lto/thinlto-cant-write-index.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/test/ELF/lto/thinlto-cant-write-index.ll b/lld/test/ELF/lto/thinlto-cant-write-index.ll index 94f2a45c274..784fbafd2a4 100644 --- a/lld/test/ELF/lto/thinlto-cant-write-index.ll +++ b/lld/test/ELF/lto/thinlto-cant-write-index.ll @@ -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" |