test: fix simple/test-debug-brk-file race condition
authorShigeki Ohtsu <ohtsu@iij.ad.jp>
Wed, 28 Nov 2012 08:18:06 +0000 (17:18 +0900)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 5 Dec 2012 03:31:22 +0000 (04:31 +0100)
commit1c8a5269c5aa4764832ff660aee0fadef30bbeeb
treeab2a61a6fb42d2839fc15e78e17e0eca499bc307
parent1f76a2eddc3561ff2c434d491e0d2b893c374cfd
test: fix simple/test-debug-brk-file race condition

V8 debug agent needs some time to be ready and no longer sends the first event
break response to a debug client. We wait some time to connect the agent and
check its break status by obtaining breakpoint list and seeing if it exists on
line 0.
test/simple/test-debug-brk-file.js