From: Rafael Espindola Date: Tue, 5 Dec 2017 18:26:23 +0000 (+0000) Subject: Simplify test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec5581ccd5722633c66e45f81708ec77340aaf3a;p=llvm Simplify test. It can use attrib instead of icacls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319809 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/tools/llvm-objcopy/cannot-delete-dest.test b/test/tools/llvm-objcopy/cannot-delete-dest.test index c07346b7384..1853049c8ac 100644 --- a/test/tools/llvm-objcopy/cannot-delete-dest.test +++ b/test/tools/llvm-objcopy/cannot-delete-dest.test @@ -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: