1 ## The Unix version of this test must use umask(1) because
2 ## llvm-dwarfutil respects the umask in setting output permissions.
3 ## Setting the umask to 0 ensures deterministic permissions across
5 # UNSUPPORTED: system-windows
10 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0777
12 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0666
14 # RUN: ls -l %t | cut -f 1 -d ' ' > %t.0640
16 ## Set umask to be permissive of all permissions,
17 ## only test mirroring of permissions.
20 # RUN: yaml2obj %s -o %t
23 # RUN: llvm-dwarfutil --no-garbage-collection %t %t1
24 # RUN: ls -l %t1 | cut -f 1 -d ' ' > %t1.perms
25 # RUN: cmp %t1.perms %t.0777
26 # RUN: llvm-dwarfutil --garbage-collection --separate-debug-file %t %t2
27 # RUN: ls -l %t2 | cut -f 1 -d ' ' > %t2.perms
28 # RUN: cmp %t2.perms %t.0777
31 # RUN: llvm-dwarfutil --no-garbage-collection %t %t1
32 # RUN: ls -l %t1 | cut -f 1 -d ' ' > %t1.perms
33 # RUN: cmp %t1.perms %t.0666
34 # RUN: llvm-dwarfutil --garbage-collection --separate-debug-file %t %t2
35 # RUN: ls -l %t2 | cut -f 1 -d ' ' > %t2.perms
36 # RUN: cmp %t2.perms %t.0666
39 # RUN: llvm-dwarfutil --no-garbage-collection %t %t1
40 # RUN: ls -l %t1 | cut -f 1 -d ' ' > %t1.perms
41 # RUN: cmp %t1.perms %t.0640
42 # RUN: llvm-dwarfutil --garbage-collection --separate-debug-file %t %t2
43 # RUN: ls -l %t2 | cut -f 1 -d ' ' > %t2.perms
44 # RUN: cmp %t2.perms %t.0640