|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50437 - trunk/libs/test/test
From: gennadiy.rozental_at_[hidden]
Date: 2009-01-02 05:58:12
Author: rogeeff
Date: 2009-01-02 05:58:11 EST (Fri, 02 Jan 2009)
New Revision: 50437
URL: http://svn.boost.org/trac/boost/changeset/50437
Log:
sync_test - added <threading>multi
Text files modified:
trunk/libs/test/test/Jamfile.v2 | 27 ++++++++++++++++++++++++++-
trunk/libs/test/test/test_fp_comparisons.cpp | 2 +-
2 files changed, 27 insertions(+), 2 deletions(-)
Modified: trunk/libs/test/test/Jamfile.v2
==============================================================================
--- trunk/libs/test/test/Jamfile.v2 (original)
+++ trunk/libs/test/test/Jamfile.v2 2009-01-02 05:58:11 EST (Fri, 02 Jan 2009)
@@ -27,6 +27,28 @@
] ;
}
+rule test-btl-lib-mt ( test-rule : test-name : lib-name ? : pattern_file * : source_files * : extra-libs ? )
+{
+ source_files ?= $(test-name).cpp ;
+
+ return [ $(test-rule) $(source_files) ../build//$(lib-name) $(extra-libs)
+ : #args
+ : $(pattern_file)
+ : #<stlport-iostream>on
+ # Activating -pedantic finds more gotchas
+ # Unfortunately, this warns about the use of "long long" in gcc's own stdlib
+ # So deactivate those warnings again
+ <toolset>gcc:<cxxflags>-pedantic
+ <toolset>gcc:<cxxflags>-Wno-long-long
+ <toolset>borland:<cxxflags>-w-8080
+ <toolset>msvc-6.5:<link>static
+ <toolset>msvc-8.0:<define>_SCL_SECURE_NO_DEPRECATE
+ <define>BOOST_TEST_NO_AUTO_LINK=1 # requirements
+ <threading>multi
+ : $(test-name)
+ ] ;
+}
+
test-suite "basics_test"
:
[ test-btl-lib run : class_properties_test : boost_unit_test_framework ]
@@ -59,8 +81,11 @@
[ test-btl-lib run : token_iterator_test : boost_unit_test_framework ]
[ test-btl-lib run : boost_check_equal_str : boost_unit_test_framework ]
[ test-btl-lib run : test_tree_management_test : boost_unit_test_framework ]
- [ test-btl-lib run : sync_access_test : boost_unit_test_framework/<link>static : : : /boost/thread//boost_thread ]
+ ;
+test-suite "multithreaded_test"
+ :
+ [ test-btl-lib-mt run : sync_access_test : boost_unit_test_framework/<link>static : : : /boost/thread//boost_thread ]
;
# A target that runs all the tests
Modified: trunk/libs/test/test/test_fp_comparisons.cpp
==============================================================================
--- trunk/libs/test/test/test_fp_comparisons.cpp (original)
+++ trunk/libs/test/test/test_fp_comparisons.cpp 2009-01-02 05:58:11 EST (Fri, 02 Jan 2009)
@@ -135,7 +135,7 @@
BOOST_AUTO_TEST_CASE( test_type_mismatch )
{
- BOOST_CHECK_CLOSE( 2, 2.1, 6 );
+ BOOST_CHECK_CLOSE_FRACTION( 2, 2.1, 0.06 );
BOOST_CHECK_CLOSE( 2.1, 2, 6 );
BOOST_CHECK_CLOSE( 2.1, 2.f, 6 );
}
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