Blob Blame History Raw
diff -Naur a/llvm/test/tools/llvm-ar/error-opening-permission.test b/llvm/test/tools/llvm-ar/error-opening-permission.test
--- a/llvm/test/tools/llvm-ar/error-opening-permission.test	2020-09-15 09:11:33.056986167 +0000
+++ b/llvm/test/tools/llvm-ar/error-opening-permission.test	2020-09-25 21:01:17.572130708 +0000
@@ -8,7 +8,7 @@
 ## No Permission:
 # RUN: llvm-ar rc %t/permission.b %t/1.txt
 # RUN: chmod 100 %t/permission.b
-# RUN: not llvm-ar p %t/permission.b 2>&1 | \
+# RUN: echo > %t/permission.b || not llvm-ar p %t/permission.b 2>&1 | \
 # RUN:   FileCheck %s --check-prefix=NO-PERMISSION -DARCHIVE=%t/permission.b
 
 # NO-PERMISSION: error: unable to open '[[ARCHIVE]]': {{[pP]}}ermission denied