From 27fdb9bab805bf409153f643da18c875e69518ac Mon Sep 17 00:00:00 2001 From: Harini Date: Mon, 12 Aug 2024 23:53:55 +0000 Subject: [PATCH] [llvm-lit] Add REQUIRES: shell to tests that rely on full shell functionality These tests require features like background processes, signal handling, and session management that are not supported by lit's internal shell. Adding `REQUIRES: shell` ensures they are only run in environments with a full-featured Unix-like shell. --- compiler-rt/test/fuzzer/fork-sigusr.test | 1 + compiler-rt/test/fuzzer/merge-sigusr.test | 1 + compiler-rt/test/fuzzer/sigint.test | 2 +- compiler-rt/test/fuzzer/sigusr.test | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler-rt/test/fuzzer/fork-sigusr.test b/compiler-rt/test/fuzzer/fork-sigusr.test index 4f796171fbd11..088e63cae4311 100644 --- a/compiler-rt/test/fuzzer/fork-sigusr.test +++ b/compiler-rt/test/fuzzer/fork-sigusr.test @@ -1,5 +1,6 @@ # Check that libFuzzer honors SIGUSR1/SIGUSR2 # Disabled on Windows which does not have SIGUSR1/SIGUSR2. +REQUIRES: shell UNSUPPORTED: darwin, target={{.*windows.*}}, target=aarch64{{.*}} RUN: rm -rf %t RUN: mkdir -p %t diff --git a/compiler-rt/test/fuzzer/merge-sigusr.test b/compiler-rt/test/fuzzer/merge-sigusr.test index 762ae0d106d28..4e492775400b9 100644 --- a/compiler-rt/test/fuzzer/merge-sigusr.test +++ b/compiler-rt/test/fuzzer/merge-sigusr.test @@ -1,6 +1,7 @@ # Check that libFuzzer honors SIGUSR1/SIGUSR2 # FIXME: Disabled on Windows for now because of reliance on posix only features # (eg: export, "&", pkill). +REQUIRES: shell UNSUPPORTED: darwin, target={{.*windows.*}} RUN: rm -rf %t RUN: mkdir -p %t diff --git a/compiler-rt/test/fuzzer/sigint.test b/compiler-rt/test/fuzzer/sigint.test index 0e239c3ce5385..ac482d79b8e28 100644 --- a/compiler-rt/test/fuzzer/sigint.test +++ b/compiler-rt/test/fuzzer/sigint.test @@ -1,4 +1,4 @@ -REQUIRES: msan +REQUIRES: shell, msan UNSUPPORTED: target=arm{{.*}} # Check that libFuzzer exits gracefully under SIGINT with MSan. diff --git a/compiler-rt/test/fuzzer/sigusr.test b/compiler-rt/test/fuzzer/sigusr.test index c3d7adf8ea99b..c8a77ac63a6d7 100644 --- a/compiler-rt/test/fuzzer/sigusr.test +++ b/compiler-rt/test/fuzzer/sigusr.test @@ -1,5 +1,6 @@ # FIXME: Disabled on Windows for now because of reliance on posix only features # (eg: export, "&", pkill). +REQUIRES: shell UNSUPPORTED: darwin, target={{.*windows.*}} # Check that libFuzzer honors SIGUSR1/SIGUSR2 RUN: rm -rf %t