Skip to content
Snippets Groups Projects
Commit 02acffca authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Adding timeout

parent 3a5b87b9
No related branches found
No related tags found
No related merge requests found
Pipeline #1821 failed
#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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment