unit-tests: Give worker threads time to clean up when testing thread_t.detach()

This commit is contained in:
Tobias Brunner
2014-09-09 10:58:59 +02:00
parent cee338eccd
commit c6f886ce10
@@ -980,7 +980,8 @@ START_TEST(test_detach)
sched_yield();
}
/* 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
@@ -1015,7 +1016,8 @@ START_TEST(test_detach_exit)
sched_yield();
}
/* 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