diff --git a/test/boost_has_clock_gettime.ipp b/test/boost_has_clock_gettime.ipp new file mode 100644 index 00000000..282f588b --- /dev/null +++ b/test/boost_has_clock_gettime.ipp @@ -0,0 +1,31 @@ +// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// MACRO: BOOST_HAS_CLOCK_GETTIME +// TITLE: clock_gettime +// DESCRIPTION: The platform supports POSIX standard API clock_gettime. + +#include + + +namespace boost_has_clock_gettime{ + +void f() +{ + // this is never called, it just has to compile: + timespec tp; + int res = clock_gettime(CLOCK_REALTIME, &tp); +} + +int test() +{ + return 0; +} + +} + + + + diff --git a/test/boost_has_ftime.ipp b/test/boost_has_ftime.ipp new file mode 100644 index 00000000..b3b8f351 --- /dev/null +++ b/test/boost_has_ftime.ipp @@ -0,0 +1,31 @@ +// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// MACRO: BOOST_HAS_FTIME +// TITLE: GetSystemTimeAsFileTime +// DESCRIPTION: The platform supports Win32 API GetSystemTimeAsFileTime. + +#include + + +namespace boost_has_ftime{ + +void f() +{ + // this is never called, it just has to compile: + FILETIME ft; + GetSystemTimeAsFileTime(&ft); +} + +int test() +{ + return 0; +} + +} + + + + diff --git a/test/boost_has_gettimeofday.ipp b/test/boost_has_gettimeofday.ipp new file mode 100644 index 00000000..922a4f3e --- /dev/null +++ b/test/boost_has_gettimeofday.ipp @@ -0,0 +1,31 @@ +// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// MACRO: BOOST_HAS_GETTIMEOFDAY +// TITLE: gettimeofday +// DESCRIPTION: The platform supports POSIX standard API gettimeofday. + +#include + + +namespace boost_has_gettimeofday{ + +void f() +{ + // this is never called, it just has to compile: + timeval tp; + int res = gettimeofday(&tp, 0); +} + +int test() +{ + return 0; +} + +} + + + + diff --git a/test/boost_has_nanosleep.ipp b/test/boost_has_nanosleep.ipp new file mode 100644 index 00000000..758fbc93 --- /dev/null +++ b/test/boost_has_nanosleep.ipp @@ -0,0 +1,31 @@ +// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// MACRO: BOOST_HAS_NANOSLEEP +// TITLE: nanosleep +// DESCRIPTION: The platform supports POSIX API nanosleep. + +#include + + +namespace boost_has_nanosleep{ + +void f() +{ + // this is never called, it just has to compile: + timespec ts = {0}; + int res = nanosleep(&ts); +} + +int test() +{ + return 0; +} + +} + + + + diff --git a/test/boost_has_pthread_delay_np.ipp b/test/boost_has_pthread_delay_np.ipp new file mode 100644 index 00000000..32afebf7 --- /dev/null +++ b/test/boost_has_pthread_delay_np.ipp @@ -0,0 +1,32 @@ +// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// MACRO: BOOST_HAS_PTHREAD_DELAY_NP +// TITLE: pthread_delay_np +// DESCRIPTION: The platform supports non-standard pthread_delay_np API. + +#include +#include + + +namespace boost_has_pthread_delay_np{ + +void f() +{ + // this is never called, it just has to compile: + timespec ts; + int res = pthread_delay_np(&ts); +} + +int test() +{ + return 0; +} + +} + + + + diff --git a/test/boost_has_pthread_ma_gt.cxx b/test/boost_has_pthread_ma_gt.cxx new file mode 100644 index 00000000..7f7f54b5 --- /dev/null +++ b/test/boost_has_pthread_ma_gt.cxx @@ -0,0 +1,33 @@ +// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// MACRO: BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE +// TITLE: pthread_mutexattr_gettype +// DESCRIPTION: The platform supports POSIX API pthread_mutexattr_gettype. + +#include + + +namespace boost_has_pthread_mutexattr_gettype{ + +void f() +{ + // this is never called, it just has to compile: + pthread_mutexattr_t attr; + pthread_mutexattr_init(&attr); + int type; + pthread_mutexattr_gettype(&attr, &type); +} + +int test() +{ + return 0; +} + +} + + + + diff --git a/test/boost_has_pthread_yield.ipp b/test/boost_has_pthread_yield.ipp new file mode 100644 index 00000000..d80c7a80 --- /dev/null +++ b/test/boost_has_pthread_yield.ipp @@ -0,0 +1,30 @@ +// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// MACRO: BOOST_HAS_PTHREAD_YIELD +// TITLE: pthread_yield +// DESCRIPTION: The platform supports non standard API pthread_yield. + +#include + + +namespace boost_has_pthread_yield{ + +void f() +{ + // this is never called, it just has to compile: + int res = pthread_yield(); +} + +int test() +{ + return 0; +} + +} + + + + diff --git a/test/boost_has_sched_yield.ipp b/test/boost_has_sched_yield.ipp new file mode 100644 index 00000000..92f30977 --- /dev/null +++ b/test/boost_has_sched_yield.ipp @@ -0,0 +1,30 @@ +// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// MACRO: BOOST_HAS_SCHED_YIELD +// TITLE: sched_yield +// DESCRIPTION: The platform supports POSIX standard API sched_yield. + +#include + + +namespace boost_has_sched_yield{ + +void f() +{ + // this is never called, it just has to compile: + int res = sched_yield(); +} + +int test() +{ + return 0; +} + +} + + + + diff --git a/test/config_info.cpp b/test/config_info.cpp index 0a714879..cdc6d466 100644 --- a/test/config_info.cpp +++ b/test/config_info.cpp @@ -821,10 +821,19 @@ void print_boost_macros() std::cout << "Boost version " << BOOST_STRINGIZE(BOOST_VERSION) << std::endl; PRINT_MACRO(BOOST_DECL); PRINT_MACRO(BOOST_HAS_BETHREADS); + PRINT_MACRO(BOOST_HAS_CLOCK_GETTIME); + PRINT_MACRO(BOOST_HAS_FTIME); + PRINT_MACRO(BOOST_HAS_GETTIMEOFDAY); PRINT_MACRO(BOOST_HAS_HASH); PRINT_MACRO(BOOST_HAS_MACRO_USE_FACET); + PRINT_MACRO(BOOST_HAS_NANOSLEEP); PRINT_MACRO(BOOST_HAS_NL_TYPES_H); + PRINT_MACRO(BOOST_HAS_PTHREAD_DELAY_NP); + PRINT_MACRO(BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE); + PRINT_MACRO(BOOST_HAS_PTHREAD_YIELD); PRINT_MACRO(BOOST_HAS_PTHREADS); + PRINT_MACRO(BOOST_HAS_SCHED_YIELD); + PRINT_MACRO(BOOST_HAS_STDINT_H); PRINT_MACRO(BOOST_HAS_SLIST); PRINT_MACRO(BOOST_HAS_STLP_USE_FACET); PRINT_MACRO(BOOST_HAS_THREADS); @@ -874,7 +883,6 @@ void print_boost_macros() PRINT_MACRO(BOOST_NO_USING_TEMPLATE); PRINT_MACRO(BOOST_NO_VOID_RETURNS); PRINT_MACRO(BOOST_STD_EXTENSION_NAMESPACE); - PRINT_MACRO(BOOST_HAS_STDINT_H); } void print_separator() diff --git a/test/config_test.cpp b/test/config_test.cpp index d1cd4cf1..69babb5c 100644 --- a/test/config_test.cpp +++ b/test/config_test.cpp @@ -10,7 +10,7 @@ // Do not edit this file, it was generated automatically by // ../tools/generate from boost_*.cxx on -// Wed Oct 3 13:47:21 2001 +// Thu Oct 11 12:24:39 2001 #include #define BOOST_INCLUDE_MAIN @@ -217,6 +217,21 @@ namespace boost_has_two_arg_use_facet = empty_boost; #else namespace boost_has_bethreads = empty_boost; #endif +#ifdef BOOST_HAS_CLOCK_GETTIME +#include "boost_has_clock_gettime.cxx" +#else +namespace boost_has_clock_gettime = empty_boost; +#endif +#ifdef BOOST_HAS_FTIME +#include "boost_has_ftime.cxx" +#else +namespace boost_has_ftime = empty_boost; +#endif +#ifdef BOOST_HAS_GETTIMEOFDAY +#include "boost_has_gettimeofday.cxx" +#else +namespace boost_has_gettimeofday = empty_boost; +#endif #ifdef BOOST_HAS_HASH #include "boost_has_hash.cxx" #else @@ -227,16 +242,41 @@ namespace boost_has_hash = empty_boost; #else namespace boost_has_macro_use_facet = empty_boost; #endif +#ifdef BOOST_HAS_NANOSLEEP +#include "boost_has_nanosleep.cxx" +#else +namespace boost_has_nanosleep = empty_boost; +#endif #ifdef BOOST_HAS_NL_TYPES_H #include "boost_has_nl_types_h.cxx" #else namespace boost_has_nl_types_h = empty_boost; #endif +#ifdef BOOST_HAS_PTHREAD_DELAY_NP +#include "boost_has_pthread_delay_np.cxx" +#else +namespace boost_has_pthread_delay_np = empty_boost; +#endif +#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE +#include "boost_has_pthread_ma_gt.cxx" +#else +namespace boost_has_pthread_mutexattr_settype = empty_boost; +#endif +#ifdef BOOST_HAS_PTHREAD_YIELD +#include "boost_has_pthread_yield.cxx" +#else +namespace boost_has_pthread_yield = empty_boost; +#endif #ifdef BOOST_HAS_PTHREADS #include "boost_has_pthreads.cxx" #else namespace boost_has_pthreads = empty_boost; #endif +#ifdef BOOST_HAS_SCHED_YIELD +#include "boost_has_sched_yield.cxx" +#else +namespace boost_has_sched_yield = empty_boost; +#endif #ifdef BOOST_HAS_SLIST #include "boost_has_slist.cxx" #else @@ -320,10 +360,18 @@ int test_main( int, char *[] ) BOOST_TEST(0 == boost_has_stlp_use_facet::test()); BOOST_TEST(0 == boost_has_stdint_h::test()); BOOST_TEST(0 == boost_has_slist::test()); + BOOST_TEST(0 == boost_has_sched_yield::test()); BOOST_TEST(0 == boost_has_pthreads::test()); + BOOST_TEST(0 == boost_has_pthread_yield::test()); + BOOST_TEST(0 == boost_has_pthread_mutexattr_settype::test()); + BOOST_TEST(0 == boost_has_pthread_delay_np::test()); BOOST_TEST(0 == boost_has_nl_types_h::test()); + BOOST_TEST(0 == boost_has_nanosleep::test()); BOOST_TEST(0 == boost_has_macro_use_facet::test()); BOOST_TEST(0 == boost_has_hash::test()); + BOOST_TEST(0 == boost_has_gettimeofday::test()); + BOOST_TEST(0 == boost_has_ftime::test()); + BOOST_TEST(0 == boost_has_clock_gettime::test()); BOOST_TEST(0 == boost_has_bethreads::test()); BOOST_TEST(0 == boost_has_two_arg_use_facet::test()); return 0; diff --git a/test/has_clock_gettime_fail.cpp b/test/has_clock_gettime_fail.cpp new file mode 100644 index 00000000..1d6d804a --- /dev/null +++ b/test/has_clock_gettime_fail.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_CLOCK_GETTIME +// This file should not compile, if it does then +// BOOST_HAS_CLOCK_GETTIME may be defined. +// see boost_has_clock_gettime.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_clock_gettime.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifndef BOOST_HAS_CLOCK_GETTIME +#include "boost_has_clock_gettime.cxx" +#else +#error "this file should not compile" +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_clock_gettime::test(); +} + diff --git a/test/has_clock_gettime_pass.cpp b/test/has_clock_gettime_pass.cpp new file mode 100644 index 00000000..295aab21 --- /dev/null +++ b/test/has_clock_gettime_pass.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_CLOCK_GETTIME +// This file should compile, if it does not then +// BOOST_HAS_CLOCK_GETTIME should not be defined. +// see boost_has_clock_gettime.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_clock_gettime.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifdef BOOST_HAS_CLOCK_GETTIME +#include "boost_has_clock_gettime.cxx" +#else +namespace boost_has_clock_gettime = empty_boost; +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_clock_gettime::test(); +} + diff --git a/test/has_ftime_fail.cpp b/test/has_ftime_fail.cpp new file mode 100644 index 00000000..47ca3712 --- /dev/null +++ b/test/has_ftime_fail.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_FTIME +// This file should not compile, if it does then +// BOOST_HAS_FTIME may be defined. +// see boost_has_ftime.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_ftime.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifndef BOOST_HAS_FTIME +#include "boost_has_ftime.cxx" +#else +#error "this file should not compile" +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_ftime::test(); +} + diff --git a/test/has_ftime_pass.cpp b/test/has_ftime_pass.cpp new file mode 100644 index 00000000..e60014bf --- /dev/null +++ b/test/has_ftime_pass.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_FTIME +// This file should compile, if it does not then +// BOOST_HAS_FTIME should not be defined. +// see boost_has_ftime.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_ftime.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifdef BOOST_HAS_FTIME +#include "boost_has_ftime.cxx" +#else +namespace boost_has_ftime = empty_boost; +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_ftime::test(); +} + diff --git a/test/has_gettimeofday_fail.cpp b/test/has_gettimeofday_fail.cpp new file mode 100644 index 00000000..961c1a0e --- /dev/null +++ b/test/has_gettimeofday_fail.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_GETTIMEOFDAY +// This file should not compile, if it does then +// BOOST_HAS_GETTIMEOFDAY may be defined. +// see boost_has_gettimeofday.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_gettimeofday.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifndef BOOST_HAS_GETTIMEOFDAY +#include "boost_has_gettimeofday.cxx" +#else +#error "this file should not compile" +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_gettimeofday::test(); +} + diff --git a/test/has_gettimeofday_pass.cpp b/test/has_gettimeofday_pass.cpp new file mode 100644 index 00000000..5ce7c0ff --- /dev/null +++ b/test/has_gettimeofday_pass.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_GETTIMEOFDAY +// This file should compile, if it does not then +// BOOST_HAS_GETTIMEOFDAY should not be defined. +// see boost_has_gettimeofday.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_gettimeofday.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifdef BOOST_HAS_GETTIMEOFDAY +#include "boost_has_gettimeofday.cxx" +#else +namespace boost_has_gettimeofday = empty_boost; +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_gettimeofday::test(); +} + diff --git a/test/has_nanosleep_fail.cpp b/test/has_nanosleep_fail.cpp new file mode 100644 index 00000000..d620bc62 --- /dev/null +++ b/test/has_nanosleep_fail.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_NANOSLEEP +// This file should not compile, if it does then +// BOOST_HAS_NANOSLEEP may be defined. +// see boost_has_nanosleep.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_nanosleep.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifndef BOOST_HAS_NANOSLEEP +#include "boost_has_nanosleep.cxx" +#else +#error "this file should not compile" +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_nanosleep::test(); +} + diff --git a/test/has_nanosleep_pass.cpp b/test/has_nanosleep_pass.cpp new file mode 100644 index 00000000..3984fbe9 --- /dev/null +++ b/test/has_nanosleep_pass.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_NANOSLEEP +// This file should compile, if it does not then +// BOOST_HAS_NANOSLEEP should not be defined. +// see boost_has_nanosleep.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_nanosleep.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifdef BOOST_HAS_NANOSLEEP +#include "boost_has_nanosleep.cxx" +#else +namespace boost_has_nanosleep = empty_boost; +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_nanosleep::test(); +} + diff --git a/test/has_pthread_delay_np_fail.cpp b/test/has_pthread_delay_np_fail.cpp new file mode 100644 index 00000000..431260f1 --- /dev/null +++ b/test/has_pthread_delay_np_fail.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_PTHREAD_DELAY_NP +// This file should not compile, if it does then +// BOOST_HAS_PTHREAD_DELAY_NP may be defined. +// see boost_has_pthread_delay_np.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_pthread_delay_np.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifndef BOOST_HAS_PTHREAD_DELAY_NP +#include "boost_has_pthread_delay_np.cxx" +#else +#error "this file should not compile" +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_pthread_delay_np::test(); +} + diff --git a/test/has_pthread_delay_np_pass.cpp b/test/has_pthread_delay_np_pass.cpp new file mode 100644 index 00000000..ba3d78a0 --- /dev/null +++ b/test/has_pthread_delay_np_pass.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_PTHREAD_DELAY_NP +// This file should compile, if it does not then +// BOOST_HAS_PTHREAD_DELAY_NP should not be defined. +// see boost_has_pthread_delay_np.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_pthread_delay_np.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifdef BOOST_HAS_PTHREAD_DELAY_NP +#include "boost_has_pthread_delay_np.cxx" +#else +namespace boost_has_pthread_delay_np = empty_boost; +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_pthread_delay_np::test(); +} + diff --git a/test/has_pthread_ma_gt_fail.cpp b/test/has_pthread_ma_gt_fail.cpp new file mode 100644 index 00000000..61a91020 --- /dev/null +++ b/test/has_pthread_ma_gt_fail.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE +// This file should not compile, if it does then +// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE may be defined. +// see boost_has_pthread_ma_gt.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_pthread_ma_gt.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE +#include "boost_has_pthread_ma_gt.cxx" +#else +#error "this file should not compile" +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_pthread_mutexattr_settype::test(); +} + diff --git a/test/has_pthread_ma_gt_pass.cpp b/test/has_pthread_ma_gt_pass.cpp new file mode 100644 index 00000000..5063fab2 --- /dev/null +++ b/test/has_pthread_ma_gt_pass.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE +// This file should compile, if it does not then +// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE should not be defined. +// see boost_has_pthread_ma_gt.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_pthread_ma_gt.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE +#include "boost_has_pthread_ma_gt.cxx" +#else +namespace boost_has_pthread_mutexattr_settype = empty_boost; +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_pthread_mutexattr_settype::test(); +} + diff --git a/test/has_pthread_yield_fail.cpp b/test/has_pthread_yield_fail.cpp new file mode 100644 index 00000000..b4bdc9f3 --- /dev/null +++ b/test/has_pthread_yield_fail.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_PTHREAD_YIELD +// This file should not compile, if it does then +// BOOST_HAS_PTHREAD_YIELD may be defined. +// see boost_has_pthread_yield.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_pthread_yield.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifndef BOOST_HAS_PTHREAD_YIELD +#include "boost_has_pthread_yield.cxx" +#else +#error "this file should not compile" +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_pthread_yield::test(); +} + diff --git a/test/has_pthread_yield_pass.cpp b/test/has_pthread_yield_pass.cpp new file mode 100644 index 00000000..71948251 --- /dev/null +++ b/test/has_pthread_yield_pass.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_PTHREAD_YIELD +// This file should compile, if it does not then +// BOOST_HAS_PTHREAD_YIELD should not be defined. +// see boost_has_pthread_yield.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_pthread_yield.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifdef BOOST_HAS_PTHREAD_YIELD +#include "boost_has_pthread_yield.cxx" +#else +namespace boost_has_pthread_yield = empty_boost; +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_pthread_yield::test(); +} + diff --git a/test/has_sched_yield_fail.cpp b/test/has_sched_yield_fail.cpp new file mode 100644 index 00000000..45ecc295 --- /dev/null +++ b/test/has_sched_yield_fail.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_SCHED_YIELD +// This file should not compile, if it does then +// BOOST_HAS_SCHED_YIELD may be defined. +// see boost_has_sched_yield.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_sched_yield.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifndef BOOST_HAS_SCHED_YIELD +#include "boost_has_sched_yield.cxx" +#else +#error "this file should not compile" +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_sched_yield::test(); +} + diff --git a/test/has_sched_yield_pass.cpp b/test/has_sched_yield_pass.cpp new file mode 100644 index 00000000..ac986c9d --- /dev/null +++ b/test/has_sched_yield_pass.cpp @@ -0,0 +1,36 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_SCHED_YIELD +// This file should compile, if it does not then +// BOOST_HAS_SCHED_YIELD should not be defined. +// see boost_has_sched_yield.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_sched_yield.cxx on +// Thu Oct 11 12:24:39 2001 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include +#include "test.hpp" + +#ifdef BOOST_HAS_SCHED_YIELD +#include "boost_has_sched_yield.cxx" +#else +namespace boost_has_sched_yield = empty_boost; +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_sched_yield::test(); +} + diff --git a/test/regression.cfg b/test/regression.cfg index 257e1f70..a4932337 100644 --- a/test/regression.cfg +++ b/test/regression.cfg @@ -85,14 +85,30 @@ run libs/config/test/has_2arg_use_facet_pass.cpp link-fail libs/config/test/has_2arg_use_facet_fail.cpp run libs/config/test/has_bethreads_pass.cpp link-fail libs/config/test/has_bethreads_fail.cpp +run libs/config/test/has_clock_gettime_pass.cpp +link-fail libs/config/test/has_clock_gettime_fail.cpp +run libs/config/test/has_ftime_pass.cpp +link-fail libs/config/test/has_ftime_fail.cpp +run libs/config/test/has_gettimeofday_pass.cpp +link-fail libs/config/test/has_gettimeofday_fail.cpp run libs/config/test/has_hash_pass.cpp link-fail libs/config/test/has_hash_fail.cpp run libs/config/test/has_macro_use_facet_pass.cpp link-fail libs/config/test/has_macro_use_facet_fail.cpp +run libs/config/test/has_nanosleep_pass.cpp +link-fail libs/config/test/has_nanosleep_fail.cpp run libs/config/test/has_nl_types_h_pass.cpp link-fail libs/config/test/has_nl_types_h_fail.cpp +run libs/config/test/has_pthread_delay_np_pass.cpp +link-fail libs/config/test/has_pthread_delay_np_fail.cpp +run libs/config/test/has_pthread_ma_gt_pass.cpp +link-fail libs/config/test/has_pthread_ma_gt_fail.cpp +run libs/config/test/has_pthread_yield_pass.cpp +link-fail libs/config/test/has_pthread_yield_fail.cpp run libs/config/test/has_pthreads_pass.cpp link-fail libs/config/test/has_pthreads_fail.cpp +run libs/config/test/has_sched_yield_pass.cpp +link-fail libs/config/test/has_sched_yield_fail.cpp run libs/config/test/has_slist_pass.cpp link-fail libs/config/test/has_slist_fail.cpp run libs/config/test/has_stdint_h_pass.cpp