Index: compiler-rt/test/profile/Inputs/instrprof-gcov-multithread_fork.cpp =================================================================== --- compiler-rt/test/profile/Inputs/instrprof-gcov-multithread_fork.cpp +++ compiler-rt/test/profile/Inputs/instrprof-gcov-multithread_fork.cpp @@ -8,28 +8,31 @@ std::vector pool; for (int i = 0; i < 10; i++) { - pool.emplace_back(std::thread(func)); + try { + pool.emplace_back(std::thread(func)); + } catch (...) { + } } for (auto &t : pool) { t.join(); } } void h() {} void g() { fork(); launcher<>(h); } void f() { fork(); launcher<>(g); } int main() { launcher<>(f); return 0; }