1 ## This tests that the umask is respected when
2 ## assigning permissions of output files.
4 ## Windows has no umask so this test makes no sense, nor would
5 ## it work because there is no umask(1) in a Windows environment
6 # UNSUPPORTED: system-windows
11 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0755
13 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0600
15 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0655
17 # RUN: yaml2obj %s -o %t
21 # RUN: llvm-objcopy %t %t1
22 # RUN: ls -l %t1 | cut -f 1 -d ' ' | cmp - %t.0755
25 # RUN: llvm-objcopy %t %t2
26 # RUN: ls -l %t2 | cut -f 1 -d ' ' | cmp - %t.0600
29 # RUN: llvm-objcopy %t %t3
30 # RUN: ls -l %t3 | cut -f 1 -d ' ' | cmp - %t.0655