projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a936768
)
report debugger's test errors
author
Fedor Indutny
<fedor.indutny@gmail.com>
Thu, 3 Nov 2011 21:09:07 +0000
(
03:09
+0600)
committer
Ryan Dahl
<ry@tinyclouds.org>
Thu, 3 Nov 2011 21:11:14 +0000
(14:11 -0700)
test/simple/test-debugger-repl.js
patch
|
blob
|
history
diff --git
a/test/simple/test-debugger-repl.js
b/test/simple/test-debugger-repl.js
index
088bb48
..
500f179
100644
(file)
--- a/
test/simple/test-debugger-repl.js
+++ b/
test/simple/test-debugger-repl.js
@@
-149,7
+149,12
@@
function quit() {
}
setTimeout(function() {
- throw new Error('timeout!');
+ var err = 'Timeout';
+ if (expected.length > 0 && expected[0].lines) {
+ err = err + '. Expected: ' + expected[0].lines.shift();
+ }
+
+ throw new Error(err);
}, 5000);
process.once('uncaughtException', function(e) {