view bolt/test/unreadable-profile.test @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1f2b6ac9f198
children
line wrap: on
line source

REQUIRES: system-linux

RUN: touch %t.profile && chmod 000 %t.profile
RUN: %clang %S/Inputs/hello.c -o %t
RUN: not llvm-bolt %t -o %t.bolt --data %t.profile 2>&1 \
RUN:   | FileCheck %s --check-prefix CHECK-NOPERM
RUN: not llvm-bolt %t -o %t.bolt --data %t.fake.profile 2>&1 \
RUN:   | FileCheck %s --check-prefix CHECK-FAKE

## Check that llvm-bolt gracefully handles errors accessing profile data.

CHECK-NOPERM: Permission denied
CHECK-FAKE: No such file or directory