Added tests for new requires_threads.hpp header

[SVN r21350]
This commit is contained in:
John Maddock
2003-12-20 11:55:42 +00:00
parent 94a7800ff4
commit c42978702d
4 changed files with 29 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ run config_info.cpp <template>config_options ;
run config_test.cpp <lib>../../test/build/boost_test_exec_monitor <template>config_options ;
run limits_test.cpp <template>config_test_options ;
run abi/abi_test.cpp abi/main.cpp <template>config_options ;
compile-fail threads/test_thread_fail1.cpp ;
compile-fail threads/test_thread_fail2.cpp ;
test-suite "BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP" :
[ run no_arg_dep_lookup_pass.cpp <template>config_test_options ]
@@ -259,3 +261,4 @@ test-suite "BOOST_MSVC_STD_ITERATOR" :
test-suite "BOOST_HAS_WINTHREADS" :
[ run has_winthreads_pass.cpp <template>config_test_options ]
[ compile-fail has_winthreads_fail.cpp <template>config_test_options ] ;

View File

@@ -0,0 +1,10 @@
// (C) Copyright John Maddock 2003.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// disable thread support:
#define BOOST_DISABLE_THREADS
// this should now be a compiler error:
#include <boost/config/requires_threads.hpp>
// we should never get here...

View File

@@ -0,0 +1,13 @@
// (C) Copyright John Maddock 2003.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/config.hpp>
// disable thread support:
#ifdef BOOST_HAS_THREADS
# undef BOOST_HAS_THREADS
#endif
// this should now be a compiler error:
#include <boost/config/requires_threads.hpp>
// we should never get here...

View File

@@ -17,6 +17,8 @@ cat > ../test/regression.cfg << EOF
run libs/config/test/config_info.cpp
run libs/config/test/config_test.cpp
run libs/config/test/limits_test.cpp
compile-fail threads/test_thread_fail1.cpp ;
compile-fail threads/test_thread_fail2.cpp ;
EOF
cat > ../test/Jamfile << EOF
@@ -369,3 +371,4 @@ echo