[PATCH] D64302: [test] [llvm-objcopy] Fix broken test case
Alex Brachet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 19:33:42 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG553c29faa262: [test] [llvm-objcopy] Fix broken test case (authored by abrachet).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64302/new/
https://reviews.llvm.org/D64302
Files:
llvm/test/tools/llvm-objcopy/ELF/respect-umask.test
Index: llvm/test/tools/llvm-objcopy/ELF/respect-umask.test
===================================================================
--- llvm/test/tools/llvm-objcopy/ELF/respect-umask.test
+++ llvm/test/tools/llvm-objcopy/ELF/respect-umask.test
@@ -9,18 +9,25 @@
# RUN: touch %t
# RUN: chmod 0755 %t
# RUN: ls -l %t | cut -f 1 -d ' ' > %t.0755
-# RUN: chmod 0500 %t
-# RUN: ls -l %t | cut -f 1 -d ' ' > %t.0500
-# RUN: chmod 0555 %t
-# RUN: ls -l %t | cut -f 1 -d ' ' > %t.0555
+# RUN: chmod 0600 %t
+# RUN: ls -l %t | cut -f 1 -d ' ' > %t.0600
+# RUN: chmod 0655 %t
+# RUN: ls -l %t | cut -f 1 -d ' ' > %t.0655
-# RUN: rm -f %t; yaml2obj %s -o %t
+# RUN: yaml2obj %s -o %t
# RUN: umask 0022
# RUN: chmod 0777 %t
-# RUN: rm -f %t1; llvm-objcopy %t %t1
-# RUN: ls -l %t1 | cut -f 1 -d ' ' > %t1.perms
-# RUN: cmp %t1.perms %t.0755
+# RUN: llvm-objcopy %t %t1
+# RUN: ls -l %t1 | cut -f 1 -d ' ' | cmp - %t.0755
+
+# RUN: umask 0177
+# RUN: llvm-objcopy %t %t2
+# RUN: ls -l %t2 | cut -f 1 -d ' ' | cmp - %t.0600
+
+# RUN: umask 0122
+# RUN: llvm-objcopy %t %t3
+# RUN: ls -l %t3 | cut -f 1 -d ' ' | cmp - %t.0655
--- !ELF
FileHeader:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64302.210726.patch
Type: text/x-patch
Size: 1140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190719/b54804a9/attachment.bin>
More information about the llvm-commits
mailing list