diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
| commit | dcacc00e3750300617ba6e16eb346713f91a783a (patch) | |
| tree | 38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/deps/jemalloc/test/integration/cpp/infallible_new_false.cpp | |
| parent | 58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff) | |
| download | crep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz | |
Remove testing data
Diffstat (limited to 'examples/redis-unstable/deps/jemalloc/test/integration/cpp/infallible_new_false.cpp')
| -rw-r--r-- | examples/redis-unstable/deps/jemalloc/test/integration/cpp/infallible_new_false.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/examples/redis-unstable/deps/jemalloc/test/integration/cpp/infallible_new_false.cpp b/examples/redis-unstable/deps/jemalloc/test/integration/cpp/infallible_new_false.cpp deleted file mode 100644 index 42196d6..0000000 --- a/examples/redis-unstable/deps/jemalloc/test/integration/cpp/infallible_new_false.cpp +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | #include <memory> | ||
| 2 | |||
| 3 | #include "test/jemalloc_test.h" | ||
| 4 | |||
| 5 | TEST_BEGIN(test_failing_alloc) { | ||
| 6 | bool saw_exception = false; | ||
| 7 | try { | ||
| 8 | /* Too big of an allocation to succeed. */ | ||
| 9 | void *volatile ptr = ::operator new((size_t)-1); | ||
| 10 | (void)ptr; | ||
| 11 | } catch (...) { | ||
| 12 | saw_exception = true; | ||
| 13 | } | ||
| 14 | expect_true(saw_exception, "Didn't get a failure"); | ||
| 15 | } | ||
| 16 | TEST_END | ||
| 17 | |||
| 18 | int | ||
| 19 | main(void) { | ||
| 20 | return test( | ||
| 21 | test_failing_alloc); | ||
| 22 | } | ||
| 23 | |||
