about summary refs log tree commit diff
path: root/tests/parallel.builder.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-03-23T15·16+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-03-23T15·16+0000
commit7aedcf946043468c169ab9b0a131be908804789b (patch)
tree0921d12c8b39d1fb6ec65c90098433ea2068cfec /tests/parallel.builder.sh
parent3a87163b2480eaf47d626580d20049387d942066 (diff)
* Make this test a bit more robust. It's still timing dependent
  though.

Diffstat (limited to 'tests/parallel.builder.sh')
-rw-r--r--tests/parallel.builder.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/parallel.builder.sh b/tests/parallel.builder.sh
index d9118eff124a..280eb1de8c41 100644
--- a/tests/parallel.builder.sh
+++ b/tests/parallel.builder.sh
@@ -2,7 +2,7 @@ echo "DOING $text"
 
 
 # increase counter
-while ! ln -s x $shared.lock; do
+while ! ln -s x $shared.lock 2> /dev/null; do
     sleep 1
 done
 test -f $shared.cur || echo 0 > $shared.cur
@@ -17,11 +17,11 @@ rm $shared.lock
 
 echo -n $(cat $inputs)$text > $out
 
-sleep 3
+sleep $sleepTime
 
 
 # decrease counter
-while ! ln -s x $shared.lock; do
+while ! ln -s x $shared.lock 2> /dev/null; do
     sleep 1
 done
 test -f $shared.cur || echo 0 > $shared.cur