test: Fix debugger repl tests
authorisaacs <i@izs.me>
Wed, 27 Feb 2013 00:42:47 +0000 (16:42 -0800)
committerisaacs <i@izs.me>
Wed, 27 Feb 2013 00:49:17 +0000 (16:49 -0800)
commitec378aaa690dee25b34a696bd893f646ab4616d1
tree88c8f50bfb973871dcfc33a47f04c101b5ed23d8
parent57f9f048d3081da3bea2223842ba90b7b618ee38
test: Fix debugger repl tests

This makes the output of simple/test-debugger-repl and
simle/test-debugger-repl-utf8 mirror an actual debugger session, so it's
a bit easier to reason about.

Also, it uses the same code for both, and fixes it so that it doesn't
leave zombie processes lying around when it crashes.

Run 1000 times without any failures or zombies.
test/fixtures/breakpoints_utf8.js
test/simple/test-debugger-repl-utf8.js
test/simple/test-debugger-repl.js