xref: /llvm-project/compiler-rt/test/fuzzer/fuzzer-oom-with-profile.test (revision fa57519e317f05ba8c01814062125db1f4793829)
1REQUIRES: linux
2RUN: %cpp_compiler %S/OutOfMemoryTest.cpp -o %t-OutOfMemoryTest
3RUN: not %run %t-OutOfMemoryTest -rss_limit_mb=300 2>&1 | FileCheck %s
4CHECK: ERROR: libFuzzer: out-of-memory (used: {{.*}}; limit: 300Mb)
5CHECK: Live Heap Allocations
6CHECK: Test unit written to ./oom-
7SUMMARY: libFuzzer: out-of-memory
8