diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-02-19 06:21:51 +0000 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-02-19 06:21:51 +0000 |
commit | bd960159ddd97c1805002d6f8f2024874080ff0d (patch) | |
tree | 6fbc74be45905f0e31b6aae3e9f6606015c7e0f6 /tests/test.hpp | |
parent | cb99aa5065886035d762dbf7640dcc44c791fb2d (diff) |
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
Diffstat (limited to 'tests/test.hpp')
-rw-r--r-- | tests/test.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |