From 4cbcdb4b2cfac0fb22775180c814258e4b694def Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Tue, 10 Jan 2012 20:56:30 +0600 Subject: [PATCH] test: make debugger-repl tests work with isolates --- test/simple/test-debugger-repl-utf8.js | 19 +++++++++++++------ test/simple/test-debugger-repl.js | 19 +++++++++++++------ 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/test/simple/test-debugger-repl-utf8.js b/test/simple/test-debugger-repl-utf8.js index 820a539..308f630 100644 --- a/test/simple/test-debugger-repl-utf8.js +++ b/test/simple/test-debugger-repl-utf8.js @@ -76,12 +76,19 @@ function addTest(input, output) { } // Initial lines -addTest(null, [ - /listening on port 5858/, - /connecting... ok/, - /break in .*:1/, - /1/, /2/, /3/ -]); +if (process.features.isolates) { + addTest(null, [ + /break in .*:1/, + /1/, /2/, /3/ + ]); +} else { + addTest(null, [ + /listening on port 5858/, + /connecting... ok/, + /break in .*:1/, + /1/, /2/, /3/ + ]); +} // Next addTest('n', [ diff --git a/test/simple/test-debugger-repl.js b/test/simple/test-debugger-repl.js index df1b142..a81da29 100644 --- a/test/simple/test-debugger-repl.js +++ b/test/simple/test-debugger-repl.js @@ -81,12 +81,19 @@ function addTest(input, output) { } // Initial lines -addTest(null, [ - /listening on port 5858/, - /connecting... ok/, - /break in .*:1/, - /1/, /2/, /3/ -]); +if (process.features.isolates) { + addTest(null, [ + /break in .*:1/, + /1/, /2/, /3/ + ]); +} else { + addTest(null, [ + /listening on port 5858/, + /connecting... ok/, + /break in .*:1/, + /1/, /2/, /3/ + ]); +} // Next addTest('n', [ -- 2.7.4