From 0e59ea8234e8365a67cd7c35d9cf6eaaec41996b Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 26 Oct 2014 03:46:28 +0000 Subject: 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 --- tests/test.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test.hpp') 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; -- cgit v1.2.3