Skip to content

[compiler-rt][test] Add REQUIRES: shell to compiler-rt tests that use the ulimit command #105339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// ASan shadow memory on s390 is too large for this test.
// AArch64 bots fail on this test.
// TODO(alekseys): Android lit do not run ulimit on device.
// REQUIRES: shadow-scale-3
// REQUIRES: shell, shadow-scale-3
// UNSUPPORTED: android, target={{(s390|aarch64|powerpc64le).*}}

#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions compiler-rt/test/asan/TestCases/Posix/deep_call_stack.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Check that UAR mode can handle very deep recusrion.
// REQUIRES: shell
// RUN: %clangxx_asan -O2 %s -o %t
// RUN: ulimit -s 4096
// RUN: %env_asan_opts=detect_stack_use_after_return=1 %run %t 2>&1 | FileCheck %s
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/fuzzer/merge-posix.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
REQUIRES: shell
XFAIL: ios
UNSUPPORTED: target={{.*windows.*}}
RUN: %cpp_compiler %S/FullCoverageSetTest.cpp -o %t-FullCoverageSetTest

RUN: rm -rf %tmp/T1 %tmp/T2
Expand Down
3 changes: 1 addition & 2 deletions compiler-rt/test/fuzzer/ulimit.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# FIXME: Disabled on Windows for now because Windows has no ulimit command.
UNSUPPORTED: target={{.*windows.*}}
REQUIRES: shell
RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest
RUN: ulimit -s 1000
RUN: not %run %t-SimpleTest
1 change: 1 addition & 0 deletions compiler-rt/test/hwasan/TestCases/print-memory-usage.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Tests __hwasan_print_memory_usage.
// REQUIRES: shell
// RUN: %clang_hwasan %s -o %t
// RUN: ulimit -s 1000
// RUN: %run %t 2>&1 | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions compiler-rt/test/msan/Linux/reexec_unlimited_stack.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// MSAN re-execs on unlimited stacks. We use that to verify ReExec() uses the
// right path.
// REQUIRES: shell
// RUN: %clangxx_msan -O0 %s -o %t && ulimit -s unlimited && %run %t | FileCheck %s

#include <stdio.h>
Expand Down
Loading