diff options
-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" |