forked from boostorg/config
Added tests for new requires_threads.hpp header
[SVN r21350]
This commit is contained in:
@@ -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 config_test.cpp <lib>../../test/build/boost_test_exec_monitor <template>config_options ;
|
||||||
run limits_test.cpp <template>config_test_options ;
|
run limits_test.cpp <template>config_test_options ;
|
||||||
run abi/abi_test.cpp abi/main.cpp <template>config_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" :
|
test-suite "BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP" :
|
||||||
[ run no_arg_dep_lookup_pass.cpp <template>config_test_options ]
|
[ 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" :
|
test-suite "BOOST_HAS_WINTHREADS" :
|
||||||
[ run has_winthreads_pass.cpp <template>config_test_options ]
|
[ run has_winthreads_pass.cpp <template>config_test_options ]
|
||||||
[ compile-fail has_winthreads_fail.cpp <template>config_test_options ] ;
|
[ compile-fail has_winthreads_fail.cpp <template>config_test_options ] ;
|
||||||
|
|
||||||
|
10
test/threads/test_thread_fail1.cpp
Normal file
10
test/threads/test_thread_fail1.cpp
Normal 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...
|
13
test/threads/test_thread_fail2.cpp
Normal file
13
test/threads/test_thread_fail2.cpp
Normal 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...
|
@@ -17,6 +17,8 @@ cat > ../test/regression.cfg << EOF
|
|||||||
run libs/config/test/config_info.cpp
|
run libs/config/test/config_info.cpp
|
||||||
run libs/config/test/config_test.cpp
|
run libs/config/test/config_test.cpp
|
||||||
run libs/config/test/limits_test.cpp
|
run libs/config/test/limits_test.cpp
|
||||||
|
compile-fail threads/test_thread_fail1.cpp ;
|
||||||
|
compile-fail threads/test_thread_fail2.cpp ;
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
cat > ../test/Jamfile << EOF
|
cat > ../test/Jamfile << EOF
|
||||||
@@ -369,3 +371,4 @@ echo
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user