[test] [llvm-objcopy] Fix broken test case
authorAlex Brachet <alexbrachetmialot@gmail.com>
Fri, 19 Jul 2019 02:31:21 +0000 (02:31 +0000)
committerAlex Brachet <alexbrachetmialot@gmail.com>
Fri, 19 Jul 2019 02:31:21 +0000 (02:31 +0000)
commit553c29faa262d0685c21ebf95336c98174e65aaa
tree65e0a34514acc3ff528d9b65bfd1fb3e7d282105
parentca9f68e55e43a74553425613aee3353945825422
[test] [llvm-objcopy] Fix broken test case

Summary: The test case added in D62718 did not work unless the user was root because write bits were not set for the output file. This change uses only permissions with user write (0200) to ensure tests pass regardless of the users permissions.

Reviewers: jhenderson, rupprecht, MaskRay, espindola, alexshap

Reviewed By: MaskRay

Subscribers: emaste, arichardson, jakehehrlich, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64302

llvm-svn: 366527
llvm/test/tools/llvm-objcopy/ELF/respect-umask.test