Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66339 - in sandbox/chrono/libs/chrono/test: . clock clock/errored clock/hires clock/monotonic clock/process clock/system clock/thread
From: vicente.botet_at_[hidden]
Date: 2010-11-01 17:50:36


Author: viboes
Date: 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
New Revision: 66339
URL: http://svn.boost.org/trac/boost/changeset/66339

Log:
Chrono: Refactor tests

Removed:
   sandbox/chrono/libs/chrono/test/clock/check_clock_invariants.hpp
   sandbox/chrono/libs/chrono/test/clock/check_clock_now.hpp
   sandbox/chrono/libs/chrono/test/clock/errored/consistency.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/errored/now.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/hires/consistency.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/hires/now.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/monotonic/consistency.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/monotonic/now.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/process/consistency.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/process/now.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/system/consistency.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/system/from_time_t.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/system/now.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/system/rep_signed.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/system/to_time_t.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/thread/consistency.pass.cpp
   sandbox/chrono/libs/chrono/test/clock/thread/now.pass.cpp
Text files modified:
   sandbox/chrono/libs/chrono/test/Jamfile.v2 | 43 +++------------------------------------
   1 files changed, 4 insertions(+), 39 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-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
@@ -191,9 +191,9 @@
 
     test-suite "traits"
         :
- [ chrono-compile traits/common_type_duration_pass.cpp ]
- [ chrono-compile traits/common_type_time_point_pass.cpp ]
- [ chrono-compile traits/treat_as_floating_point_pass.cpp ]
+ [ chrono-compile2 traits/common_type_duration_pass.cpp : traits_common_type_duration_pass ]
+ [ chrono-compile2 traits/common_type_time_point_pass.cpp : traits_common_type_time_point_pass ]
+ [ chrono-compile2 traits/treat_as_floating_point_pass.cpp : traits_treat_as_floating_point_pass ]
         [ chrono-run2 traits/duration_values_pass.cpp : traits_duration_values_pass ]
         ;
 
@@ -205,29 +205,21 @@
         [ chrono-compile duration/default_ratio_pass.cpp ]
         [ chrono-compile duration/types_pass.cpp ]
         [ chrono-compile duration/ratio_alias_pass.cpp ]
-
         [ chrono-compile duration/typedefs_pass.cpp ]
-
         [ chrono-run duration/arithmetic_pass.cpp ]
-
         [ chrono-run duration/duration_cast_pass.cpp ]
         [ compile-fail duration/duration_cast_int_fail.cpp ]
-
         [ chrono-run duration/comparisons_pass.cpp ]
-
         [ chrono-run duration/constructor_pass.cpp ]
-
         [ compile-fail duration/cons/convert_float_to_int_fail.cpp ]
         [ compile-fail duration/cons/convert_inexact_fail.cpp ]
         [ compile-fail duration/cons/implicit_constructot_fail.cpp ]
         [ compile-fail duration/cons/non_implicit_convertible_rep_fail.cpp ]
         [ compile-fail duration/cons/treat_as_floating_point_Rep2_true_fail.cpp ]
-
         [ compile-fail duration/nonmember/divide_rep2_fail.cpp ]
         [ compile-fail duration/nonmember/modulus_rep2_fail.cpp ]
         [ compile-fail duration/nonmember/times_rep2_lhs_fail.cpp ]
         [ compile-fail duration/nonmember/times_rep2_rhs_fail.cpp ]
-
         [ chrono-run duration/duration_values_pass.cpp ]
         ;
 
@@ -235,48 +227,21 @@
         :
         [ chrono-compile2 time_point/default_duration_pass.cpp : time_point.default_duration_pass ]
         [ compile-fail time_point/not_duration_fail.cpp : : time_point_not_duration_fail ]
-
         [ chrono-run2 time_point/arithmetic_pass.cpp : time_point_arithmetic_pass ]
-
         [ chrono-run2 time_point/time_point_cast_pass.cpp : time_point_time_point_cast_pass ]
         [ compile-fail time_point/time_point_cast_int_fail.cpp : : time_point_time_point_cast_int_fail ]
-
         [ chrono-run2 time_point/comparisons_pass.cpp : time_point_comparisons_pass ]
         [ compile-fail time_point/comparisons/equal_fail.cpp : : time_point_equal_fail ]
         [ compile-fail time_point/comparisons/less_fail.cpp : : time_point_less_fail ]
-
         [ chrono-run2 time_point/constructor_pass.cpp : time_point_constructor_pass ]
         [ compile-fail time_point/cons/implicit_fail.cpp : : time_point_implicit_fail ]
         [ compile-fail time_point/cons/non_implicit_convertible_duration_fail.cpp : : time_point_non_implicit_convertible_duration_fail ]
-
         [ chrono-run2 time_point/min_max_pass.cpp : time_point_min_max_pass ]
         ;
 
     test-suite "clock"
- :
-
+ :
         [ chrono-run2 clock/clock_pass.cpp : clock_clock_pass_ ]
- #[ chrono-compile2 clock/hires/consistency.pass.cpp : clock.hires.consistency.pass ]
- #[ chrono-run2 clock/hires/now.pass.cpp : clock.hires.now.pass ]
-
- #[ chrono-compile2 clock/monotonic/consistency.pass.cpp : clock.monotonic.consistency.pass ]
- #[ chrono-run2 clock/monotonic/now.pass.cpp : clock.monotonic.now.pass ]
-
- #[ chrono-compile2 clock/system/consistency.pass.cpp : clock.system.consistency.pass ]
- #[ chrono-run2 clock/system/now.pass.cpp : clock.system.now.pass ]
- #[ chrono-run2 clock/system/from_time_t.pass.cpp : clock.system.from_time_t.pass ]
- #[ chrono-run2 clock/system/rep_signed.pass.cpp : clock.system.rep_signed.pass ]
- #[ chrono-run2 clock/system/to_time_t.pass.cpp : clock.system.to_time_t.pass ]
-
- #[ chrono-compile2 clock/process/consistency.pass.cpp : clock.process.consistency.pass ]
- #[ chrono-run2 clock/process/now.pass.cpp : clock.process.now.pass ]
-
- #[ chrono-compile2 clock/thread/consistency.pass.cpp : clock.thread.consistency.pass ]
- #[ chrono-run2 clock/thread/now.pass.cpp : clock.thread.now.pass ]
-
- #[ chrono-compile2 clock/errored/consistency.pass.cpp : clock.errored.consistency.pass ]
- #[ chrono-run2 clock/errored/now.pass.cpp : clock.errored.now.pass ]
-
         ;
 
 

Deleted: sandbox/chrono/libs/chrono/test/clock/check_clock_invariants.hpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/check_clock_invariants.hpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,24 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#ifndef BOOST_CHRONO_CHECK_CLOCK_INVARIANTS_HPP
-#define BOOST_CHRONO_CHECK_CLOCK_INVARIANTS_HPP
-
-#include <boost/type_traits/is_same.hpp>
-
-#if !defined(BOOST_NO_STATIC_ASSERT)
-#define NOTHING ""
-#endif
-
-template <typename Clock>
-void check_clock_invariants()
-{
- BOOST_CHRONO_STATIC_ASSERT((boost::is_same<typename Clock::rep, typename Clock::duration::rep>::value), NOTHING, ());
- BOOST_CHRONO_STATIC_ASSERT((boost::is_same<typename Clock::period, typename Clock::duration::period>::value), NOTHING, ());
- BOOST_CHRONO_STATIC_ASSERT((boost::is_same<typename Clock::duration, typename Clock::time_point::duration>::value), NOTHING, ());
- BOOST_CHRONO_STATIC_ASSERT(Clock::is_monotonic || !Clock::is_monotonic, NOTHING, ());
- // to be replaced by has static member bool is_monotonic
-}
-
-#endif

Deleted: sandbox/chrono/libs/chrono/test/clock/check_clock_now.hpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/check_clock_now.hpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,72 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#ifndef BOOST_CHRONO_CHECK_CLOCK_NOW_HPP
-#define BOOST_CHRONO_CHECK_CLOCK_NOW_HPP
-
-#include <boost/chrono.hpp>
-#include <boost/system/system_error.hpp>
-#include <boost/detail/lightweight_test.hpp>
-
-template <typename Clock>
-void check_clock_now()
-{
- typename Clock::time_point t1 = Clock::now();
-}
-
-template <typename Clock>
-void check_clock_now_ec()
-{
- boost::system::error_code ec;
- typename Clock::time_point t1 = Clock::now(ec);
- BOOST_TEST(ec.value()==0);
-}
-
-template <typename Clock>
-void check_clock_now_throws()
-{
- typename Clock::time_point t1 = Clock::now(boost::throws());
-}
-
-template <typename Clock>
-void check_clock_now_err(int err)
-{
- Clock::set_errno(err);
- try {
- typename Clock::time_point t1 = Clock::now();
- } catch (boost::system::system_error& ex) {
- BOOST_TEST(ex.code().value()==err);
-// BOOST_TEST(ex.code().category() == BOOST_CHRONO_SYSTEM_CATEGORY);
-// BOOST_TEST(std::string(ex.what()) == std::string("errored_clock"));
- }
- Clock::set_errno(0);
-}
-
-template <typename Clock>
-void check_clock_now_ec_err(int err)
-{
- Clock::set_errno(err);
- boost::system::error_code ec;
- typename Clock::time_point t1 = Clock::now(ec);
- BOOST_TEST(ec.value()==err);
-// BOOST_TEST(ec.category() == BOOST_CHRONO_SYSTEM_CATEGORY);
- Clock::set_errno(0);
-}
-
-template <typename Clock>
-void check_clock_now_throws_err(int err)
-{
- Clock::set_errno(err);
- try {
- typename Clock::time_point t1 = Clock::now(boost::throws());
- BOOST_TEST(0&&"exception not thown");
- } catch (boost::system::system_error& ex) {
- BOOST_TEST(ex.code().value()==err);
-// BOOST_TEST(ex.code().category() == BOOST_CHRONO_SYSTEM_CATEGORY);
-// BOOST_TEST(std::string(ex.what()) == std::string("errored_clock"));
- }
- Clock::set_errno(0);
-}
-
-#endif

Deleted: sandbox/chrono/libs/chrono/test/clock/errored/consistency.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/errored/consistency.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,12 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-//#include <boost/chrono.hpp>
-#include "../errored_clock.hpp"
-#include <libs/chrono/test/clock/check_clock_invariants.hpp>
-
-void test()
-{
- check_clock_invariants<errored_clock>();
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/errored/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/errored/now.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,16 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#include "../errored_clock.hpp"
-#include "../check_clock_now.hpp"
-#include <boost/detail/lightweight_test.hpp>
-
-int main()
-{
- check_clock_now_err<errored_clock>(1);
- check_clock_now_ec_err<errored_clock>(1);
- check_clock_now_throws_err<errored_clock>(1);
-
- return boost::report_errors();
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/hires/consistency.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/hires/consistency.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,11 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#include <boost/chrono.hpp>
-#include <libs/chrono/test/clock/check_clock_invariants.hpp>
-
-void test()
-{
- check_clock_invariants<boost::chrono::high_resolution_clock>();
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/hires/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/hires/now.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,15 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#include <boost/chrono.hpp>
-#include "../check_clock_now.hpp"
-#include <boost/detail/lightweight_test.hpp>
-
-int main()
-{
- check_clock_now<boost::chrono::high_resolution_clock>();
- check_clock_now_ec<boost::chrono::high_resolution_clock>();
- check_clock_now_throws<boost::chrono::high_resolution_clock>();
- return boost::report_errors();
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/monotonic/consistency.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/monotonic/consistency.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,13 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#include <boost/chrono.hpp>
-#include <libs/chrono/test/clock/check_clock_invariants.hpp>
-
-void test()
-{
-#ifdef BOOST_CHRONO_HAS_CLOCK_MONOTONIC
- check_clock_invariants<boost::chrono::monotonic_clock>();
-#endif
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/monotonic/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/monotonic/now.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,22 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-// monotonic_clock
-
-// static time_point now();
-
-#include <boost/chrono.hpp>
-#include "../check_clock_now.hpp"
-#include <boost/detail/lightweight_test.hpp>
-
-int main()
-{
-#ifdef BOOST_CHRONO_HAS_CLOCK_MONOTONIC
- check_clock_now<boost::chrono::monotonic_clock>();
- check_clock_now_ec<boost::chrono::monotonic_clock>();
- check_clock_now_throws<boost::chrono::monotonic_clock>();
-#endif
- return boost::report_errors();
-}
-

Deleted: sandbox/chrono/libs/chrono/test/clock/process/consistency.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/process/consistency.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,15 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#include <boost/chrono.hpp>
-#include <boost/chrono/process_cpu_clocks.hpp>
-#include "../check_clock_invariants.hpp"
-
-void test()
-{
- check_clock_invariants<boost::chrono::process_real_cpu_clock>();
- check_clock_invariants<boost::chrono::process_user_cpu_clock>();
- check_clock_invariants<boost::chrono::process_system_cpu_clock>();
- check_clock_invariants<boost::chrono::process_cpu_clock>();
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/process/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/process/now.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,29 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#include "../check_clock_now.hpp"
-#include <boost/chrono/process_cpu_clocks.hpp>
-#include <boost/chrono.hpp>
-#include <boost/detail/lightweight_test.hpp>
-
-int main()
-{
- check_clock_now<boost::chrono::process_real_cpu_clock>();
- check_clock_now_ec<boost::chrono::process_real_cpu_clock>();
- check_clock_now_throws<boost::chrono::process_real_cpu_clock>();
-
- check_clock_now<boost::chrono::process_user_cpu_clock>();
- check_clock_now_ec<boost::chrono::process_user_cpu_clock>();
- check_clock_now_throws<boost::chrono::process_user_cpu_clock>();
-
- check_clock_now<boost::chrono::process_system_cpu_clock>();
- check_clock_now_ec<boost::chrono::process_system_cpu_clock>();
- check_clock_now_throws<boost::chrono::process_system_cpu_clock>();
-
- check_clock_now<boost::chrono::process_cpu_clock>();
- check_clock_now_ec<boost::chrono::process_cpu_clock>();
- check_clock_now_throws<boost::chrono::process_cpu_clock>();
-
- return boost::report_errors();
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/system/consistency.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/system/consistency.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,11 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#include <boost/chrono.hpp>
-#include <libs/chrono/test/clock/check_clock_invariants.hpp>
-
-void test()
-{
- check_clock_invariants<boost::chrono::system_clock>();
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/system/from_time_t.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/system/from_time_t.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,29 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-// Adapted from llvm/libcxx/test/utilities/chrono
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <chrono>
-
-// system_clock
-
-// static time_point from_time_t(time_t t);
-
-#include <boost/chrono.hpp>
-#include <ctime>
-
-int main()
-{
- typedef boost::chrono::system_clock C;
- C::time_point t1 = C::from_time_t(C::to_time_t(C::now()));
- return 0;
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/system/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/system/now.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,16 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#include <boost/chrono.hpp>
-#include "../check_clock_now.hpp"
-#include <boost/detail/lightweight_test.hpp>
-
-int main()
-{
- check_clock_now<boost::chrono::system_clock>();
- check_clock_now_ec<boost::chrono::system_clock>();
- check_clock_now_throws<boost::chrono::system_clock>();
-
- return boost::report_errors();
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/system/rep_signed.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/system/rep_signed.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,29 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-// Adapted from llvm/libcxx/test/utilities/chrono
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <chrono>
-
-// system_clock
-
-// rep should be signed
-
-#include <boost/chrono.hpp>
-#include <cassert>
-
-int main()
-{
- assert((boost::chrono::system_clock::duration::min)() <
- boost::chrono::system_clock::duration::zero());
- return 0;
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/system/to_time_t.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/system/to_time_t.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,30 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-// Adapted from llvm/libcxx/test/utilities/chrono
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <chrono>
-
-// system_clock
-
-// time_t to_time_t(const time_point& t);
-
-#include <boost/chrono.hpp>
-#include <ctime>
-
-int main()
-{
- typedef boost::chrono::system_clock C;
- std::time_t t1 = C::to_time_t(C::now());
- (void)t1;
- return 0;
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/thread/consistency.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/thread/consistency.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,14 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-#include <boost/chrono.hpp>
-#include <boost/chrono/thread_clock.hpp>
-#include "../check_clock_invariants.hpp"
-
-void test()
-{
-#if defined(BOOST_CHRONO_HAS_THREAD_CLOCK)
- check_clock_invariants<boost::chrono::thread_clock>();
-#endif
-}

Deleted: sandbox/chrono/libs/chrono/test/clock/thread/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/thread/now.pass.cpp 2010-11-01 17:50:32 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,19 +0,0 @@
-// Copyright 2010 Vicente J. Botet Escriba
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-
-#include "../check_clock_now.hpp"
-#include <boost/chrono/thread_clock.hpp>
-#include <boost/chrono.hpp>
-#include <boost/detail/lightweight_test.hpp>
-
-int main()
-{
-#if defined(BOOST_CHRONO_HAS_THREAD_CLOCK)
- check_clock_now<boost::chrono::thread_clock>();
- check_clock_now_ec<boost::chrono::thread_clock>();
- check_clock_now_throws<boost::chrono::thread_clock>();
-#endif
- return boost::report_errors();
-}


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