summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-20 07:32:49 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-20 07:32:49 +0000
commitca4866290b2408c39575f4cea40f2bac16183631 (patch)
treeb9124ade26368017fb7e46b4bb7d26467d66740c /tests
parent487a18107f7a054b3bab9db02c6db0fc8e6729da (diff)
tests: Fixed deprecation warnings disabling for GCC 4.0, miscellaneous fixes for MacOS X
git-svn-id: http://pugixml.googlecode.com/svn/trunk@433 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/autotest-remote-server.pl2
-rw-r--r--tests/test_deprecated.cpp23
2 files changed, 14 insertions, 11 deletions
diff --git a/tests/autotest-remote-server.pl b/tests/autotest-remote-server.pl
index 9b7e8c1..970476c 100644
--- a/tests/autotest-remote-server.pl
+++ b/tests/autotest-remote-server.pl
@@ -7,7 +7,7 @@ $vm = shift;
my $server = new IO::Socket::INET(LocalPort => 7183, Listen => 1);
die "Could not create socket: $!\n" unless $server;
-system("vboxmanage startvm $vm --type gui");
+system("vboxmanage startvm $vm --type headless");
print "Listening for connection...\n";
diff --git a/tests/test_deprecated.cpp b/tests/test_deprecated.cpp
index 4677fdf..4a9d3b4 100644
--- a/tests/test_deprecated.cpp
+++ b/tests/test_deprecated.cpp
@@ -1,24 +1,27 @@
// This file includes all tests for deprecated functionality; this is going away in the next release!
-#include <string.h>
-
-#include "common.hpp"
-
-#include "writer_string.hpp"
-
-#include <vector>
-#include <iterator>
-
#ifdef _MSC_VER
# pragma warning(disable: 4996)
#endif
#ifdef __GNUC__
-# if __GNUC__ >= 4
+# if __GNUC__ >= 4 && __GNUC_MINOR__ >= 2
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+# else
+# define PUGIXML_DEPRECATED
# endif
#endif
+
+#include <string.h>
+
+#include "common.hpp"
+
+#include "writer_string.hpp"
+
+#include <vector>
+#include <iterator>
+
// format_write_bom_utf8 - it's now format_write_bom!
TEST_XML(document_save_bom_utf8, "<node/>")
{