Summary: Patch in D78477 introduced a new test for gcov and this test is failing on arm: - http://lab.llvm.org:8011/builders/clang-cmake-thumbv7-full-sh/builds/4752/steps/ninja%20check%202/logs/stdio - http://lab.llvm.org:8011/builders/clang-cmake-armv7-full/builds/10501/steps/ninja%20check%202/logs/stdio So try to fix it in reducing the number of threads. Reviewers: marco-c Reviewed By: marco-c Subscribers: dberris, kristof.beyls, #sanitizers, serge-sans-paille, sylvestre.ledru Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D79621
26 lines
299 B
C++
26 lines
299 B
C++
#include <sys/types.h>
|
|
#include <thread>
|
|
#include <unistd.h>
|
|
|
|
template <typename T>
|
|
void launcher(T func) {
|
|
auto t1 = std::thread(func);
|
|
auto t2 = std::thread(func);
|
|
|
|
t1.join();
|
|
t2.join();
|
|
}
|
|
|
|
void g() {}
|
|
|
|
void f() {
|
|
fork();
|
|
launcher<>(g);
|
|
}
|
|
|
|
int main() {
|
|
launcher<>(f);
|
|
|
|
return 0;
|
|
}
|