Update of /cvsroot/boost/boost/libs/serialization/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30343
Modified Files:
test_polymorphic.cpp
Log Message:
fixup to support lightweight testing
Index: test_polymorphic.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/serialization/test/test_polymorphic.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- test_polymorphic.cpp 16 Dec 2006 06:03:48 -0000 1.8
+++ test_polymorphic.cpp 16 Jul 2007 17:20:34 -0000 1.9
@@ -79,5 +79,22 @@
BOOST_CHECK(d == d1);
std::remove(testfile);
+ // test using using polymorphic implementation.
+ {
+ test_ostream os(testfile, TEST_STREAM_FLAGS);
+ boost::archive::polymorphic_oarchive * oa_implementation
+ = new test_oarchive(os);
+ *oa_implementation << BOOST_SERIALIZATION_NVP(d);
+ delete oa_implementation;
+ }
+ {
+ test_istream is(testfile, TEST_STREAM_FLAGS);
+ boost::archive::polymorphic_iarchive * ia_implementation
+ = new test_iarchive(is);
+ *ia_implementation >> BOOST_SERIALIZATION_NVP(d1);
+ delete ia_implementation;
+ }
+ BOOST_CHECK(d == d1);
+ std::remove(testfile);
return EXIT_SUCCESS;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs