Skip to content

Commit bcba394

Browse files
committed
test_infinite_loop: wait until the compilation is finished & kernel launched
1 parent d432e7a commit bcba394

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/regression/test_infinite_loop.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
# include "vccompat.hpp"
3939
#endif
4040

41+
#include <thread>
42+
#include <chrono>
43+
4144
#define WORK_ITEMS 1
4245

4346
static char
@@ -120,6 +123,8 @@ main(void)
120123

121124
std::cout << "OK" << std::endl;
122125

126+
std::this_thread::sleep_for(std::chrono::milliseconds(1200));
127+
123128
// Force exit of the process regardless of the running kernel thread
124129
// by replacing the process with a dummy process.
125130
#if __cplusplus >= 201103L && /* C++11 */ \

0 commit comments

Comments
 (0)