blob: 4c1cd8af0a62c148b792a7b78d619cd5ac87f716 [file] [log] [blame]
Aiden Grossman2bf3ef12024-12-13 06:14:411REQUIRES: system-linux, non-root-user
Maksim Panchenko0f915822022-12-06 23:49:352
3RUN: touch %t.profile && chmod 000 %t.profile
4RUN: %clang %S/Inputs/hello.c -o %t
5RUN: not llvm-bolt %t -o %t.bolt --data %t.profile 2>&1 \
6RUN: | FileCheck %s --check-prefix CHECK-NOPERM
7RUN: not llvm-bolt %t -o %t.bolt --data %t.fake.profile 2>&1 \
8RUN: | FileCheck %s --check-prefix CHECK-FAKE
9
10## Check that llvm-bolt gracefully handles errors accessing profile data.
11
12CHECK-NOPERM: Permission denied
13CHECK-FAKE: No such file or directory