Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1635 from STEllAR-GROUP/add_test_1572
Adding missing test for #1572
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) 2015 Hartmut Kaiser | ||
// | ||
// 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 <hpx/hpx.hpp> | ||
#include <hpx/util/lightweight_test.hpp> | ||
|
||
int hpx_main(int argc, char* argv[]) | ||
{ | ||
// check number of localities | ||
HPX_TEST_EQ( | ||
boost::lexical_cast<boost::uint32_t>( | ||
hpx::get_config_entry("hpx.localities", "")), | ||
hpx::get_num_localities_sync()); | ||
HPX_TEST_EQ( | ||
boost::lexical_cast<std::size_t>( | ||
hpx::get_config_entry("hpx.os_threads", "")), | ||
hpx::get_os_thread_count()); | ||
HPX_TEST_EQ(hpx::get_config_entry("hpx.runtime_mode", ""), | ||
std::string("console")); | ||
|
||
return hpx::finalize(); | ||
} | ||
|
||
int main(int argc, char* argv[]) | ||
{ | ||
HPX_TEST_EQ(hpx::init(argc, argv), 0); | ||
return hpx::util::report_errors(); | ||
} |