Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56224 - trunk/libs/serialization/test
From: ramey_at_[hidden]
Date: 2009-09-15 16:23:52


Author: ramey
Date: 2009-09-15 16:23:51 EDT (Tue, 15 Sep 2009)
New Revision: 56224
URL: http://svn.boost.org/trac/boost/changeset/56224

Log:
Formalize compiler time errors and warnings

Text files modified:
   trunk/libs/serialization/test/Jamfile.v2 | 5 +--
   trunk/libs/serialization/test/test_binary.cpp | 50 ++++++++++++++++++++++++++++++++-------
   trunk/libs/serialization/test/test_tracking.cpp | 1
   3 files changed, 43 insertions(+), 13 deletions(-)

Modified: trunk/libs/serialization/test/Jamfile.v2
==============================================================================
--- trunk/libs/serialization/test/Jamfile.v2 (original)
+++ trunk/libs/serialization/test/Jamfile.v2 2009-09-15 16:23:51 EDT (Tue, 15 Sep 2009)
@@ -83,9 +83,7 @@
      [ test-bsl-run_files test_mi ]
      [ test-bsl-run_files test_multiple_ptrs : A ]
      [ test-bsl-run_files test_multiple_inheritance ]
- [ test-bsl-run_files test_no_rtti
- : polymorphic_base polymorphic_derived1
- ]
+ [ test-bsl-run_files test_no_rtti : polymorphic_base polymorphic_derived1 ]
      [ test-bsl-run_files test_non_intrusive ]
      [ test-bsl-run_files test_non_default_ctor ]
      [ test-bsl-run_files test_non_default_ctor2 ]
@@ -144,6 +142,7 @@
         [ compile-fail test_const_load_fail1_nvp.cpp ]
         [ compile-fail test_const_load_fail2_nvp.cpp ]
         [ compile-fail test_const_load_fail3_nvp.cpp ]
+ [ compile-fail test_check.cpp ]
 
         # should compile with a warning message
         [ compile test_static_warning.cpp ]

Modified: trunk/libs/serialization/test/test_binary.cpp
==============================================================================
--- trunk/libs/serialization/test/test_binary.cpp (original)
+++ trunk/libs/serialization/test/test_binary.cpp 2009-09-15 16:23:51 EDT (Tue, 15 Sep 2009)
@@ -76,20 +76,36 @@
     char s1_3[10];
     char s1_4[10];
     int i1 = 34790;
- {
+ {
         test_ostream os(testfile, TEST_STREAM_FLAGS);
         test_oarchive oa(os, TEST_ARCHIVE_FLAGS);
         boost::serialization::make_nvp(
- "s1", boost::serialization::make_binary_object(s1, sizeof(s1))
+ "s1",
+ boost::serialization::make_binary_object(
+ s1,
+ sizeof(s1)
+ )
         );
         oa << boost::serialization::make_nvp(
- "s2", boost::serialization::make_binary_object(s2, sizeof(s2))
+ "s2",
+ boost::serialization::make_binary_object(
+ s2,
+ sizeof(s2)
+ )
         );
         oa << boost::serialization::make_nvp(
- "s3", boost::serialization::make_binary_object(s3, sizeof(s3))
+ "s3",
+ boost::serialization::make_binary_object(
+ s3,
+ sizeof(s3)
+ )
         );
         oa << boost::serialization::make_nvp(
- "s4", boost::serialization::make_binary_object(s4, sizeof(s4))
+ "s4",
+ boost::serialization::make_binary_object(
+ s4,
+ sizeof(s4)
+ )
         );
         oa << BOOST_SERIALIZATION_NVP(a);
         // note: add a little bit on the end of the archive to detect
@@ -100,16 +116,32 @@
         test_istream is(testfile, TEST_STREAM_FLAGS);
         test_iarchive ia(is, TEST_ARCHIVE_FLAGS);
         boost::serialization::make_nvp(
- "s1", boost::serialization::make_binary_object(s1_1, sizeof(s1))
+ "s1",
+ boost::serialization::make_binary_object(
+ s1_1,
+ sizeof(s1)
+ )
         );
         ia >> boost::serialization::make_nvp(
- "s2", boost::serialization::make_binary_object(s1_2, sizeof(s2))
+ "s2",
+ boost::serialization::make_binary_object(
+ s1_2,
+ sizeof(s2)
+ )
         );
         ia >> boost::serialization::make_nvp(
- "s3", boost::serialization::make_binary_object(s1_3, sizeof(s3))
+ "s3",
+ boost::serialization::make_binary_object(
+ s1_3,
+ sizeof(s3)
+ )
         );
         ia >> boost::serialization::make_nvp(
- "s4", boost::serialization::make_binary_object(s1_4, sizeof(s4))
+ "s4",
+ boost::serialization::make_binary_object(
+ s1_4,
+ sizeof(s4)
+ )
         );
         ia >> BOOST_SERIALIZATION_NVP(a1);
         // note: add a little bit on the end of the archive to detect

Modified: trunk/libs/serialization/test/test_tracking.cpp
==============================================================================
--- trunk/libs/serialization/test/test_tracking.cpp (original)
+++ trunk/libs/serialization/test/test_tracking.cpp 2009-09-15 16:23:51 EDT (Tue, 15 Sep 2009)
@@ -128,4 +128,3 @@
     return EXIT_SUCCESS;
 }
 
-// EOF


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk