Commit 02acffca authored by incardon's avatar incardon
Browse files

Adding timeout

parent 3a5b87b9
Pipeline #1821 failed with stages
in 0 seconds
#include "Grid/grid_dist_id.hpp"
#include "data_type/aggregate.hpp"
/*! \page grid Grid
*
......
openfpm_devices @ bf4ede95
Subproject commit 435be1727f99bbadb1dc027e1e756cea16b0d6cd
Subproject commit bf4ede95e9e8b2ff6f19525a79d76f0aebf1fa4a
......@@ -12,6 +12,7 @@
#include "Grid/Iterators/grid_dist_id_iterator.hpp"
#include "Grid/grid_dist_util.hpp"
#include "Grid/Iterators/grid_dist_id_iterator_util.hpp"
#include "Grid/cuda/grid_dist_id_kernels.cuh"
/*! \brief Given the decomposition it create an iterator
*
......
#include <iostream>
#include <thread>
size_t debug_tot_call = 0;
......@@ -11,6 +12,15 @@ size_t debug_tot_call = 0;
#define NO_WARNING
#include "Graph/CartesianGraphFactory.hpp"
void timeout_cycle()
{
// 6 seconds
std::this_thread::sleep_for (std::chrono::seconds(900));
std::cout << "Time Out" << std::endl;
std::exit(1);
}
#define BOOST_DISABLE_ASSERTS
......@@ -23,10 +33,12 @@ size_t debug_tot_call = 0;
// initialization function:
bool init_unit_test()
{
std::thread to (timeout_cycle);
to.detach();
return true;
}
// entry point:
// entry point
int main(int argc, char* argv[])
{
return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment