|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65288 - sandbox/chrono/libs/chrono/test
From: vicente.botet_at_[hidden]
Date: 2010-09-05 06:46:55
Author: viboes
Date: 2010-09-05 06:46:54 EDT (Sun, 05 Sep 2010)
New Revision: 65288
URL: http://svn.boost.org/trac/boost/changeset/65288
Log:
Fix test minmax to be run only if GCC is not defined
Text files modified:
sandbox/chrono/libs/chrono/test/Jamfile.v2 | 8 +++++++-
sandbox/chrono/libs/chrono/test/test_minmax.cpp | 8 +++-----
2 files changed, 10 insertions(+), 6 deletions(-)
Modified: sandbox/chrono/libs/chrono/test/Jamfile.v2
==============================================================================
--- sandbox/chrono/libs/chrono/test/Jamfile.v2 (original)
+++ sandbox/chrono/libs/chrono/test/Jamfile.v2 2010-09-05 06:46:54 EDT (Sun, 05 Sep 2010)
@@ -43,6 +43,11 @@
[ compile-fail common_type_fails.cpp ]
;
+ test-suite "minmax"
+ :
+ [ compile test_minmax.cpp ]
+ ;
+
test-suite "chrono"
:
[ run chrono_unit_test.cpp : : : <link>static ]
@@ -61,7 +66,8 @@
[ run manipulate_clock_object.cpp : : : : manipulate_clock_object_dll ]
[ run chrono_accuracy_test.cpp : : : <link>static ]
[ run chrono_accuracy_test.cpp : : : : chrono_accuracy_test_dll ]
-
+
+
[ run ../example/cycle_count.cpp : : : <link>static ]
[ run ../example/cycle_count.cpp : : : : cycle_count_dll ]
[ run ../example/runtime_resolution.cpp : : : <link>static ]
Modified: sandbox/chrono/libs/chrono/test/test_minmax.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/test_minmax.cpp (original)
+++ sandbox/chrono/libs/chrono/test/test_minmax.cpp 2010-09-05 06:46:54 EDT (Sun, 05 Sep 2010)
@@ -5,15 +5,13 @@
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
+#if !defined(__GNUC__)
#define min(A,B) ((A)<(B)?(A):(B))
#define max(A,B) ((A)>(B)?(A):(B))
#include <boost/chrono/chrono.hpp>
-#include <boost/chrono/stopclock.hpp>
- int main()
- {
- boost::chrono::stopclock<> _;
- }
+#endif
+
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