37 lines · plain
1## This tests that the umask is respected when2## assigning permissions of output files.3 4## Windows has no umask so this test makes no sense.5# UNSUPPORTED: system-windows6 7# RUN: rm -f %t8# RUN: touch %t9# RUN: chmod 0755 %t10# RUN: ls -l %t | cut -f 1 -d ' ' > %t.075511# RUN: chmod 0600 %t12# RUN: ls -l %t | cut -f 1 -d ' ' > %t.060013# RUN: chmod 0655 %t14# RUN: ls -l %t | cut -f 1 -d ' ' > %t.065515 16# RUN: yaml2obj %s -o %t17 18# RUN: umask 002219# RUN: chmod 0777 %t20# RUN: llvm-objcopy %t %t121# RUN: ls -l %t1 | cut -f 1 -d ' ' | cmp - %t.075522 23# RUN: umask 017724# RUN: llvm-objcopy %t %t225# RUN: ls -l %t2 | cut -f 1 -d ' ' | cmp - %t.060026 27# RUN: umask 012228# RUN: llvm-objcopy %t %t329# RUN: ls -l %t3 | cut -f 1 -d ' ' | cmp - %t.065530 31--- !ELF32FileHeader:33 Class: ELFCLASS6434 Data: ELFDATA2LSB35 Type: ET_EXEC36 Machine: EM_X86_6437