summaryrefslogtreecommitdiff
path: root/tests/test.hpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-26 03:46:28 +0000
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-26 03:46:28 +0000
commit0e59ea8234e8365a67cd7c35d9cf6eaaec41996b (patch)
tree61f9f82a3c3504656ed14c49843ac0e55d554130 /tests/test.hpp
parent0b7964917cbfd9d007c8a017eaced636f53ddeb3 (diff)
tests: Add a way for tests to verify allocation failure
git-svn-id: https://pugixml.googlecode.com/svn/trunk@1081 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test.hpp')
-rw-r--r--tests/test.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test.hpp b/tests/test.hpp
index 26260ad..509b0cd 100644
--- a/tests/test.hpp
+++ b/tests/test.hpp
@@ -23,6 +23,7 @@ struct test_runner
static test_runner* _tests;
static size_t _memory_fail_threshold;
+ static bool _memory_fail_triggered;
static jmp_buf _failure_buffer;
static const char* _failure_message;