diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-07-15 09:29:32 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-07-15 09:29:32 +0000 |
commit | 2dec6dd505897498b8ea50043190961159f0b407 (patch) | |
tree | 67e1b443b22b4f32727f8fa928ae9f0d7bd32890 /tests/test_document.cpp | |
parent | fc88f09ac1259a31f6da930ed9b885c0c83c38d1 (diff) |
tests: Added Xbox360 and PS3 toolset support
git-svn-id: http://pugixml.googlecode.com/svn/trunk@602 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_document.cpp')
-rw-r--r-- | tests/test_document.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_document.cpp b/tests/test_document.cpp index c40c14a..9a83a6d 100644 --- a/tests/test_document.cpp +++ b/tests/test_document.cpp @@ -19,6 +19,10 @@ # include <io.h> // for unlink in C++0x mode
#endif
+#if defined(__CELLOS_LV2__)
+# include <unistd.h> // for unlink
+#endif
+
TEST(document_create_empty)
{
pugi::xml_document doc;
@@ -253,6 +257,8 @@ TEST_XML(document_save_file, "<node/>") int fd = mkstemp(path);
CHECK(fd != -1);
+#elif defined(__CELLOS_LV2__)
+ const char* path = ""; // no temporary file support
#else
const char* path = tmpnam(0);
#endif
|