From bd960159ddd97c1805002d6f8f2024874080ff0d Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 19 Feb 2014 06:21:51 +0000 Subject: tests: Write temporary files to executable folder. Temp folder is the root folder on Windows; writing to the folder may require administrator rights. We can't use current folder for temporaries because tests from different configurations can be running in parallel, but executable folder is always safe since we only run each executable once. git-svn-id: https://pugixml.googlecode.com/svn/trunk@984 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test.hpp') diff --git a/tests/test.hpp b/tests/test.hpp index ab0f36e..26260ad 100644 --- a/tests/test.hpp +++ b/tests/test.hpp @@ -25,6 +25,8 @@ struct test_runner static size_t _memory_fail_threshold; static jmp_buf _failure_buffer; static const char* _failure_message; + + static const char* _temp_path; }; bool test_string_equal(const pugi::char_t* lhs, const pugi::char_t* rhs); -- cgit v1.2.3