[llvm] r319809 - Simplify test.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 10:26:23 PST 2017


Author: rafael
Date: Tue Dec  5 10:26:23 2017
New Revision: 319809

URL: http://llvm.org/viewvc/llvm-project?rev=319809&view=rev
Log:
Simplify test.

It can use attrib instead of icacls.

Modified:
    llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test

Modified: llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test?rev=319809&r1=319808&r2=319809&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test Tue Dec  5 10:26:23 2017
@@ -1,18 +1,14 @@
 # REQUIRES: system-windows
-# RUN: icacls %t /grant Everyone:(DC) || true
-# RUN: rm -rf %t
-# RUN: mkdir %t
-# RUN: cd %t
-# RUN: yaml2obj %s > test.o
-# RUN: cp test.o test2.o
-# RUN: icacls test2.o /deny Everyone:(D)
-# RUN: icacls . /deny Everyone:(DC)
+# RUN: yaml2obj %s > %t.o
+# RUN: rm -f %t2.o
+# RUN: cp %t.o %t2.o
+# RUN: attrib +r %t2.o
 
-# This fails because it cannot replace test2.o
-# RUN: not llvm-objcopy test.o test2.o
+# This fails because it cannot replace %t2.o
+# RUN: not llvm-objcopy %t.o %t2.o
 
 # But it doesn't leave any temporary files behind.
-# RUN: not ls test2.o.tmp*
+# RUN: not ls %t2.o.tmp*
 
 !ELF
 FileHeader:




More information about the llvm-commits mailing list