unit-tests: Give worker threads time to clean up when testing thread_t.detach()
This commit is contained in:
@@ -980,7 +980,8 @@ START_TEST(test_detach)
|
|||||||
sched_yield();
|
sched_yield();
|
||||||
}
|
}
|
||||||
/* no checks done here, but we check that thread state gets cleaned
|
/* no checks done here, but we check that thread state gets cleaned
|
||||||
* up with leak detective. */
|
* up with leak detective. give the threads time to clean up. */
|
||||||
|
usleep(10000);
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
@@ -1015,7 +1016,8 @@ START_TEST(test_detach_exit)
|
|||||||
sched_yield();
|
sched_yield();
|
||||||
}
|
}
|
||||||
/* no checks done here, but we check that thread state gets cleaned
|
/* no checks done here, but we check that thread state gets cleaned
|
||||||
* up with leak detective. */
|
* up with leak detective. give the threads time to clean up. */
|
||||||
|
usleep(10000);
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user