Skip to content

Commit

Permalink
Make tests pass on 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 9, 2017
1 parent 05b9d9c commit 5c820a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/test.js
Expand Up @@ -663,6 +663,9 @@ Test.prototype.current = function () {
// as an arg, to run a reporter on a previous run.
// We DO however need to parse it to set the exit failure.
Test.prototype.stdin = function (name, extra, deferred) {
// This has to be here for node 0.10's wonky streams
process.stdin.pause()

if (typeof name === 'object') {
extra = name
name = null
Expand Down
5 changes: 4 additions & 1 deletion test/runner-timeout.js
Expand Up @@ -35,7 +35,10 @@ t.test('-t or --timeout to set timeout', function (t) {
out += c
})
child.on('close', function (code, signal) {
var skip = process.platform === 'win32' && 'SIGTERM on windows is weird'
var skip =
process.platform === 'win32' ? 'SIGTERM on windows is weird'
: process.version.match(/^v0\.10\./) ? 'v0.10 reports signals wrong'
: false
t.equal(code, 1)
t.equal(signal, null)
t.match(
Expand Down

0 comments on commit 5c820a8

Please sign in to comment.