]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fiber/test/test_topology.cpp
2 // Copyright Oliver Kowalke 2017.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
13 #include <boost/array.hpp>
14 #include <boost/assert.hpp>
15 #include <boost/test/unit_test.hpp>
16 #include <boost/utility.hpp>
18 #include <boost/fiber/numa/topology.hpp>
20 void test_topology() {
21 bool empty
= boost::fibers::numa::topology().empty();
22 BOOST_CHECK( ! empty
);
25 boost::unit_test::test_suite
* init_unit_test_suite( int, char* []) {
26 boost::unit_test::test_suite
* test
=
27 BOOST_TEST_SUITE("Boost.Fiber: numa topology test suite");
29 test
->add( BOOST_TEST_CASE( & test_topology
) );