1 | // Copyright (C) 2007 Anthony Williams |
---|---|
2 | // Copyright (C) 2013 Tim Blechmann |
3 | // |
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 | |
7 | #define BOOST_TEST_MODULE Boost.Threads: physical_concurrency test suite |
8 | |
9 | #include <boost/thread/thread_only.hpp> |
10 | #include <boost/test/unit_test.hpp> |
11 | #include <boost/thread/mutex.hpp> |
12 | |
13 | BOOST_AUTO_TEST_CASE(test_physical_concurrency_is_non_zero) |
14 | { |
15 | #if defined(__MINGW32__) && !defined(__MINGW64__) |
16 | // This matches the condition in win32/thread.cpp, even though |
17 | // that's probably wrong on MinGW-w64 in 32 bit mode |
18 | #else |
19 | BOOST_CHECK(boost::thread::physical_concurrency()!=0); |
20 | #endif |
21 | } |
22 | |
23 | |
24 | |
25 | |
26 |