Aiden Grossman | 2bf3ef1 | 2024-12-13 06:14:41 | [diff] [blame] | 1 | REQUIRES: system-linux, non-root-user |
Maksim Panchenko | 0f91582 | 2022-12-06 23:49:35 | [diff] [blame] | 2 | |
| 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 |
| 9 | |
| 10 | ## Check that llvm-bolt gracefully handles errors accessing profile data. |
| 11 | |
| 12 | CHECK-NOPERM: Permission denied |
| 13 | CHECK-FAKE: No such file or directory |