aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/deps/jemalloc/test/integration/cpp/infallible_new_false.cpp
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
commitdcacc00e3750300617ba6e16eb346713f91a783a (patch)
tree38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/deps/jemalloc/test/integration/cpp/infallible_new_false.cpp
parent58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff)
downloadcrep-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.cpp23
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
5TEST_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}
16TEST_END
17
18int
19main(void) {
20 return test(
21 test_failing_alloc);
22}
23