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
12 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0755
14 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0600
16 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0655
18 # RUN: yaml2obj %s -o %t
22 # RUN: llvm-objcopy %t %t1
23 # RUN: ls -l %t1 | cut -f 1 -d ' ' | cmp - %t.0755
26 # RUN: llvm-objcopy %t %t2
27 # RUN: ls -l %t2 | cut -f 1 -d ' ' | cmp - %t.0600
30 # RUN: llvm-objcopy %t %t3
31 # RUN: ls -l %t3 | cut -f 1 -d ' ' | cmp - %t.0655