diff options
| author | Bob Haarman <llvm@inglorion.net> | 2019-07-26 18:44:06 +0000 |
|---|---|---|
| committer | Bob Haarman <llvm@inglorion.net> | 2019-07-26 18:44:06 +0000 |
| commit | 6baac18a760d10686361466f2b0027a5baf971af (patch) | |
| tree | a8ea8a51aa114a8f07e94d3b0e73f0b00f4837fd /llvm/test/tools/llvm-lipo/create-executable.test | |
| parent | 485b8789de8b327341072a2d0ef23709fb53a600 (diff) | |
| download | bcm5719-llvm-6baac18a760d10686361466f2b0027a5baf971af.tar.gz bcm5719-llvm-6baac18a760d10686361466f2b0027a5baf971af.zip | |
add 'a' to chmod in llvm-lipo executability tests
Summary:
When specifying symbolic permissions with + or -, if none of
a/u/g/o are specified, bits set in the umask are not affected.
This caused the llvm-lipo executability tests to fail on some
systems, e.g. having an umask of 027 would cause chmod -x to not
clear the executable bit for others. This change instead
uses chmod a-x, which clears all the executable bits regardless
of umask.
Reviewers: smeenai, hans, anushabasana
Reviewed By: smeenai
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65342
llvm-svn: 367142
Diffstat (limited to 'llvm/test/tools/llvm-lipo/create-executable.test')
| -rw-r--r-- | llvm/test/tools/llvm-lipo/create-executable.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/tools/llvm-lipo/create-executable.test b/llvm/test/tools/llvm-lipo/create-executable.test index 19b3bfef3d4..43e29a71e84 100644 --- a/llvm/test/tools/llvm-lipo/create-executable.test +++ b/llvm/test/tools/llvm-lipo/create-executable.test @@ -3,11 +3,11 @@ # RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-i386.o # RUN: yaml2obj %p/Inputs/x86_64-slice.yaml > %t-x86_64.o -# RUN: chmod -x %t-i386.o -# RUN: chmod -x %t-x86_64.o +# RUN: chmod a-x %t-i386.o +# RUN: chmod a-x %t-x86_64.o # RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal.o # RUN: test ! -x %t-universal.o -# RUN: chmod +x %t-i386.o +# RUN: chmod a+x %t-i386.o # RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal.o # RUN: test -x %t-universal.o |

