From fa987588ad5e7b967fc750f3c6ffad3ced09323c Mon Sep 17 00:00:00 2001 From: Harini Date: Tue, 13 Aug 2024 06:30:31 +0000 Subject: [PATCH] [llvm-lit] Add REQUIRES: shell to BOLT permission test This commit adds the `REQUIRES: shell` directive to the BOLT permission test, ensuring it is only executed in environments with a full-featured Unix-like shell. The test relies on advanced shell features such as arithmetic evaluation and octal interpretation, which are not supported by lit's internal shell. By adding this requirement, we prevent test failures and ensure accurate test execution in appropriate environments. --- bolt/test/permission.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/test/permission.test b/bolt/test/permission.test index a5a98599eb83b..f495e87e8c7da 100644 --- a/bolt/test/permission.test +++ b/bolt/test/permission.test @@ -4,7 +4,7 @@ # This test performs a logical AND operation on the results of the `stat -c %a # %t.bolt` and `umask` commands (both results are displayed in octal), and # checks whether the result is equal to 0. -REQUIRES: system-linux +REQUIRES: shell, system-linux RUN: %clang %cflags %p/Inputs/hello.c -o %t -Wl,-q RUN: llvm-bolt %t -o %t.bolt