brintos

brintos / llvm-project-archived public Read only

0
0
Text · 735 B · ecb51fc Raw
29 lines · plain
1# Ensure that the permissions of the optimized binary file comply with the2# system's umask.3 4# This test uses umask, which is Linux specific.5REQUIRES: system-linux6 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 16RUN: %clang %cflags %p/Inputs/hello.c -o %t.exe -Wl,-q17 18RUN: umask 002219RUN: llvm-bolt %t.exe -o %t120RUN: ls -l %t1 | cut -f 1 -d ' ' | cmp - %t.075521 22RUN: umask 017723RUN: llvm-bolt %t.exe -o %t224RUN: ls -l %t2 | cut -f 1 -d ' ' | cmp - %t.060025 26RUN: umask 012227RUN: llvm-bolt %t.exe -o %t328RUN: ls -l %t3 | cut -f 1 -d ' ' | cmp - %t.065529