]> granicus.if.org Git - llvm/commitdiff
Simplify test.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 5 Dec 2017 18:26:23 +0000 (18:26 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 5 Dec 2017 18:26:23 +0000 (18:26 +0000)
It can use attrib instead of icacls.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319809 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/llvm-objcopy/cannot-delete-dest.test

index c07346b7384078c981b0a7e545873acb31f4a670..1853049c8acea7ea92a3b41264f7dc902f39c3a2 100644 (file)
@@ -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: