#include "thread_helper.h" #include #include #include Y_UNIT_TEST_SUITE(TestMP) { Y_UNIT_TEST(TestErr) { std::function f = [](int x) { if (x == 5) { ythrow yexception() << "oops"; } }; TString s; try { NYmp::ParallelForStaticAutoChunk(0, 10, f); } catch (...) { s = CurrentExceptionMessage(); } UNIT_ASSERT(s.find("oops") > 0); } }