2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-01 08:32:08 +00:00
Files
fiber/test/test_topology.cpp
Oliver Kowalke 87c5f1e404 NUMA support
2017-05-06 22:19:57 +02:00

32 lines
814 B
C++

// Copyright Oliver Kowalke 2017.
// Distributed under 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 <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include <boost/array.hpp>
#include <boost/assert.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/utility.hpp>
#include <boost/fiber/numa/topology.hpp>
void test_topology() {
BOOST_CHECK( ! boost::fibers::numa::topology().empty() );
}
boost::unit_test::test_suite * init_unit_test_suite( int, char* []) {
boost::unit_test::test_suite * test =
BOOST_TEST_SUITE("Boost.Fiber: numa topology test suite");
test->add( BOOST_TEST_CASE( & test_topology) );
return test;
}