summaryrefslogtreecommitdiff
path: root/src/nss-myhostname
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-07-29 19:14:23 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-07-29 19:19:49 +0200
commit359017c1aec9596e9d3c4c19bd62d34a6f3366b8 (patch)
tree3a10629622bcdd5be8269ceaf4035a8aba9a0f3f /src/nss-myhostname
parentf22bbd11dbfae4b7dd0606f6981d38d893ed4c1e (diff)
barrier: fix race in test-code
The barrier_wait_next_twice* test-cases run: Parent: Child: set_alarm(10) sleep_for(1); ... set_alarm(1); sleep_for(2) ... Therefore, the parent exits after 2+ periods, the client's alarm fires after 2+ periods. This race turns out to be lost by the child on other machines, so avoid it by increasing the parent's sleep-interval to 4. This way, the client has 2 periods to run the barrier test, which is far more than enough.
Diffstat (limited to 'src/nss-myhostname')
0 files changed, 0 insertions, 0 deletions