Run all the tests with the supplied options i parallel.
| 441 | |
| 442 | /// Run all the tests with the supplied options i parallel. |
| 443 | int run_tests_parallel(const std::vector<Base*>& tests, const Options& options) { |
| 444 | using namespace Gecode::Support; |
| 445 | RandomGenerator seed_sequence(options.seed); |
| 446 | |
| 447 | TestExecutionControl tec(tests, options, opt.threads); |
| 448 | |
| 449 | for (unsigned int i = 0; i < opt.threads; ++i) { |
| 450 | Thread::run(new TestExecutor(tec, seed_sequence.next())); |
| 451 | } |
| 452 | tec.await_test_runners_completed(); |
| 453 | |
| 454 | return tec.get_result(); |
| 455 | } |
| 456 | } |
| 457 | |
| 458 |
no test coverage detected