Skip to content

Commit ce8cbb0

Browse files
committed
[llvm-lit] Add REQUIRES: shell in tests that use the ulimit command
Added REQUIRES: shell in 6 files that use the ulimit command because lit internal shell doesn't support this command.
1 parent 898d6eb commit ce8cbb0

File tree

6 files changed

+6
-1
lines changed

6 files changed

+6
-1
lines changed

compiler-rt/test/asan/TestCases/Linux/allocator_oom_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// ASan shadow memory on s390 is too large for this test.
3232
// AArch64 bots fail on this test.
3333
// TODO(alekseys): Android lit do not run ulimit on device.
34-
// REQUIRES: shadow-scale-3
34+
// REQUIRES: shell, shadow-scale-3
3535
// UNSUPPORTED: android, target={{(s390|aarch64|powerpc64le).*}}
3636

3737
#include <stdlib.h>

compiler-rt/test/asan/TestCases/Posix/deep_call_stack.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: shell
12
// Check that UAR mode can handle very deep recusrion.
23
// RUN: %clangxx_asan -O2 %s -o %t
34
// RUN: ulimit -s 4096

compiler-rt/test/fuzzer/merge-posix.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
REQUIRES: shell
12
XFAIL: ios
23
UNSUPPORTED: target={{.*windows.*}}
34
RUN: %cpp_compiler %S/FullCoverageSetTest.cpp -o %t-FullCoverageSetTest

compiler-rt/test/fuzzer/ulimit.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# FIXME: Disabled on Windows for now because Windows has no ulimit command.
2+
REQUIRES: shell
23
UNSUPPORTED: target={{.*windows.*}}
34
RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest
45
RUN: ulimit -s 1000

compiler-rt/test/hwasan/TestCases/print-memory-usage.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: shell
12
// Tests __hwasan_print_memory_usage.
23
// RUN: %clang_hwasan %s -o %t
34
// RUN: ulimit -s 1000

compiler-rt/test/msan/Linux/reexec_unlimited_stack.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: shell
12
// MSAN re-execs on unlimited stacks. We use that to verify ReExec() uses the
23
// right path.
34
// RUN: %clangxx_msan -O0 %s -o %t && ulimit -s unlimited && %run %t | FileCheck %s

0 commit comments

Comments
 (0)