int main (void) { START("CoolRational"); test_rational(); #if LEAK test_leak(); #endif SUMMARY(); return 0; }
int main () { START("CoolRandom"); test_random(); #if LEAK test_leak(); #endif SUMMARY(); return 0; }
int main (void) { setup_test_environment(); test_simple (); test_leak (); return 0 ; }
int main () { START("CoolN_Tree"); test_NN_int (); test_DN_int (); #if LEAK test_leak (); #endif SUMMARY (); return 0; }
int hpx_main(int argc, char* argv[]) { { test_leak(); hpx::id_type promise_id; hpx::future<int> f; { hpx::promise<int> p; f = p.get_future(); { auto local_promise_id = p.get_id(); hpx::cout << local_promise_id << hpx::endl; } hpx::this_thread::sleep_for(std::chrono::milliseconds(100)); promise_id = p.get_id(); hpx::cout << promise_id << hpx::endl; } hpx::this_thread::sleep_for(std::chrono::milliseconds(100)); HPX_TEST(!f.is_ready()); // This segfaults, because the promise is not alive any more. // It SHOULD get kept alive by AGAS though. hpx::set_lco_value(promise_id, 10, false); HPX_TEST(f.is_ready()); HPX_TEST_EQ(f.get(), 10); } { hpx::id_type promise_id; { hpx::promise<int> p; p.get_future(); { auto local_promise_id = p.get_id(); hpx::cout << local_promise_id << hpx::endl; } hpx::this_thread::sleep_for(std::chrono::milliseconds(100)); promise_id = p.get_id(); hpx::cout << promise_id << hpx::endl; } hpx::this_thread::sleep_for(std::chrono::milliseconds(100)); // This segfaults, because the promise is not alive any more. // It SHOULD get kept alive by AGAS though. hpx::set_lco_value(promise_id, 10, false); } return hpx::finalize(); }
int main (void) { START("CoolPair"); test_int_char (); test_int_charP (); test_double_String (); #if LEAK test_leak (); #endif SUMMARY(); return 0; }
int main () { START("CoolN_Node and CoolD_Node"); test_NN (); test_DN (); test_NN_charP(); test_DN_charP(); #if LEAK test_leak (); #endif SUMMARY(); return 0; }
int main (void) { START("CoolQueue"); test_int(); test_double(); test_charP(); test_String(); #if LEAK test_leak(); #endif SUMMARY(); return 0; }
int main (void) { START("CoolHandle"); test_constructor(); test_assign(); test_conversion_deref(); test_bind_cmp(); test_use(); test_cycle(); #if LEAK test_leak(); #endif SUMMARY(); return 0; }
int main() { utInitialize(); utSetLogHandler(logPrinter); /* Get a baseline allocation count */ numAllocs = utGetAllocCount(); numReallocs = utGetReallocCount(); numFrees = utGetFreeCount(); test_c_allocators(); test_custom_allocators(); test_array(); test_leak(); /* must be last */ puts("\nOK"); return 0; }