Fix tests on platforms that statically-link boost.
[libcxml.git] / test / tests.cc
index 4fc72b2fb1cf4c4af6b09803bb531a049dbb4381..a6389a24abb69ba19e0f3486c6e23879d5262a2c 100644 (file)
 #include <libxml++/libxml++.h>
 #include "cxml.h"
 
-#define BOOST_TEST_DYN_LINK
 #define BOOST_TEST_MODULE libcxml_test
 #include <boost/test/unit_test.hpp>
 
+using std::shared_ptr;
 using std::string;
 using std::vector;
-using std::list;
-using boost::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (test)
 {
@@ -68,7 +66,7 @@ BOOST_AUTO_TEST_CASE (test)
 
        BOOST_CHECK (!document.optional_bool_child("G"));
 
-       list<shared_ptr<cxml::Node> > h = document.node_children ("H");
+       vector<shared_ptr<cxml::Node>> h = document.node_children ("H");
        BOOST_CHECK_EQUAL (h.size(), 1);
        BOOST_CHECK_EQUAL (h.front()->node_children("I").size(), 2);
        BOOST_CHECK_EQUAL (h.front()->node_children("I").front()->content(), "testing");