]> Zhao Yanbai Git Server - minix.git/commit
test75: force child to use a minimum of cpu time 66/866/4
authorBen Gras <ben@minix3.org>
Fri, 27 Sep 2013 14:29:08 +0000 (14:29 +0000)
committerGerrit Code Review <gerrit@gerrit>
Wed, 2 Oct 2013 14:26:27 +0000 (16:26 +0200)
commitb2dcc910d4fd2a2acce66c128c59d345392f6b2a
tree11785bf4fcd8e71646d1ae6637c5a222eb82938d
parentb50dbb4d240ad47ad2c5c32a320b1be3f4ced1fc
test75: force child to use a minimum of cpu time

test75 sometimes false-fails if something else is going on
at the same time, presumably because the child doesn't spin
enough to register a nonzero getrusage() cpu time value, as
spin() uses the real time to limit the spinning.

this change forces spin() to do a minimum amount of spinning
before exiting, regardless of scheduling.

Change-Id: I57c63d22969bba418f36bcc8c5ace2b6fb445968
test/test75.c