summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2018-04-03 21:56:09 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2018-04-03 21:56:09 -0700
commit474a4a3f731c4a8e2e045cdf63e2fea01d0b6300 (patch)
tree6f9819ac23a263cf8e91c612d1b8502c219208e9 /tests
parent5f4afe3bd226802549a1e4c26016c1855c407e49 (diff)
tests: Fix PUGIXML_NO_XPATH,PUGIXML_COMPACT build
pugixml.hpp wasn't including the <exception> header in this build but test code needed it.
Diffstat (limited to 'tests')
-rw-r--r--tests/test.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test.hpp b/tests/test.hpp
index f88c909..de47cc8 100644
--- a/tests/test.hpp
+++ b/tests/test.hpp
@@ -5,6 +5,10 @@
#include <setjmp.h>
+#ifndef PUGIXML_NO_EXCEPTIONS
+#include <exception>
+#endif
+
struct test_runner
{
test_runner(const char* name)