1 ## Test that permissions for ouput files are mirrored
2 ## from their input files.
4 ## The Unix version of this test is seperated because it needs
5 ## to use umask(1). Windows has no umask, so it can be considered
6 ## to be always 0, the required behavior.
7 # REQUIRES: system-windows
11 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0777
13 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0666
15 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0640
17 # RUN: yaml2obj %s -o %t
20 # RUN: llvm-objcopy %t %t1
21 # RUN: ls -l %t1 | cut -f 1 -d ' ' > %t1.perms
22 # RUN: cmp %t1.perms %t.0777
25 # RUN: llvm-objcopy %t %t1
26 # RUN: ls -l %t1 | cut -f 1 -d ' ' > %t1.perms
27 # RUN: cmp %t1.perms %t.0666
30 # RUN: llvm-objcopy %t %t1
31 # RUN: ls -l %t1 | cut -f 1 -d ' ' > %t1.perms
32 # RUN: cmp %t1.perms %t.0640