Skip to content

Commit 5c820a8

Browse files
committed
Make tests pass on 0.10
1 parent 05b9d9c commit 5c820a8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,9 @@ Test.prototype.current = function () {
663663
// as an arg, to run a reporter on a previous run.
664664
// We DO however need to parse it to set the exit failure.
665665
Test.prototype.stdin = function (name, extra, deferred) {
666+
// This has to be here for node 0.10's wonky streams
667+
process.stdin.pause()
668+
666669
if (typeof name === 'object') {
667670
extra = name
668671
name = null

test/runner-timeout.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ t.test('-t or --timeout to set timeout', function (t) {
3535
out += c
3636
})
3737
child.on('close', function (code, signal) {
38-
var skip = process.platform === 'win32' && 'SIGTERM on windows is weird'
38+
var skip =
39+
process.platform === 'win32' ? 'SIGTERM on windows is weird'
40+
: process.version.match(/^v0\.10\./) ? 'v0.10 reports signals wrong'
41+
: false
3942
t.equal(code, 1)
4043
t.equal(signal, null)
4144
t.match(

0 commit comments

Comments
 (0)