[llvm] [BOLT] Require non root user for unreadable-profile.test (PR #119816)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 20:40:51 PST 2024
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/119816
This patch adds a requirement for a non root user in unreadable-profile.test. This test fails if run as a root user (like in a container without explicitly changing the user), which can lead to some CI test failures.
>From ce96c9fa13e8deb26bfbcc8d62918534cbd11012 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Fri, 13 Dec 2024 04:39:35 +0000
Subject: [PATCH] [BOLT] Require non root user for unreadable-profile.test
This patch adds a requirement for a non root user in
unreadable-profile.test. This test fails if run as a root user (like in
a container without explicitly changing the user), which can lead to
some CI test failures.
---
bolt/test/unreadable-profile.test | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bolt/test/unreadable-profile.test b/bolt/test/unreadable-profile.test
index fe1ca93f3221e8..4c1cd8af0a62c1 100644
--- a/bolt/test/unreadable-profile.test
+++ b/bolt/test/unreadable-profile.test
@@ -1,4 +1,4 @@
-REQUIRES: system-linux
+REQUIRES: system-linux, non-root-user
RUN: touch %t.profile && chmod 000 %t.profile
RUN: %clang %S/Inputs/hello.c -o %t
More information about the llvm-commits
mailing list