Make signal test more robust wrt scheduling

This commit is contained in:
Norman Feske 2012-02-10 10:09:55 +01:00
parent b8f88c035a
commit 349dccd46d
1 changed files with 5 additions and 1 deletions

View File

@ -414,7 +414,11 @@ static void stress_test()
/* stop emitting signals */
printf("deactivate sender\n");
sender->idle();
timer.msleep(FINISH_IDLE_TIME);
while (handler->receive_cnt() < sender->submit_cnt()) {
printf("waiting for signals still in flight...");
timer.msleep(FINISH_IDLE_TIME);
}
printf("\n");
printf("sender submitted a total of %d signals\n", sender->submit_cnt());