14 lines · plain
1REQUIRES: system-linux, non-root-user2 3RUN: touch %t.profile && chmod 000 %t.profile4RUN: %clang %S/Inputs/hello.c -o %t5RUN: not llvm-bolt %t -o %t.bolt --data %t.profile 2>&1 \6RUN: | FileCheck %s --check-prefix CHECK-NOPERM7RUN: not llvm-bolt %t -o %t.bolt --data %t.fake.profile 2>&1 \8RUN: | FileCheck %s --check-prefix CHECK-FAKE9 10## Check that llvm-bolt gracefully handles errors accessing profile data.11 12CHECK-NOPERM: Permission denied13CHECK-FAKE: No such file or directory14