mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
d99dd96ac1
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
14 lines
521 B
Plaintext
14 lines
521 B
Plaintext
# Executable testing is not supported on Windows, since all files are considered executable
|
|
# UNSUPPORTED: system-windows
|
|
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-i386.o
|
|
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml > %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 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
|