3 RUN: touch %t.profile && chmod 000 %t.profile
4 RUN: %clang %S/Inputs/hello.c -o %t
5 RUN: not llvm-bolt %t -o %t.bolt --data %t.profile 2>&1 \
6 RUN: | FileCheck %s --check-prefix CHECK-NOPERM
7 RUN: not llvm-bolt %t -o %t.bolt --data %t.fake.profile 2>&1 \
8 RUN: | FileCheck %s --check-prefix CHECK-FAKE
10 ## Check that llvm-bolt gracefully handles errors accessing profile data.
12 CHECK-NOPERM: Permission denied
13 CHECK-FAKE: No such file or directory