diff --git a/test/fixtures/echo.js b/test/fixtures/echo.js index e5fc06b99c..abfdb32948 100644 --- a/test/fixtures/echo.js +++ b/test/fixtures/echo.js @@ -22,7 +22,7 @@ var common = require('../common'); var assert = require('assert'); -common.print('hello world\r\n'); +process.stdout.write('hello world\r\n'); var stdin = process.openStdin(); diff --git a/test/simple/test-deprecation-flags.js b/test/simple/test-deprecation-flags.js index 71e43d8ddb..3d50c097f6 100644 --- a/test/simple/test-deprecation-flags.js +++ b/test/simple/test-deprecation-flags.js @@ -51,7 +51,7 @@ execFile(node, traceDep, function(er, stdout, stderr) { assert.equal(stdout, ''); var stack = stderr.trim().split('\n'); // just check the top and bottom. - assert.equal(stack[0], 'Trace: util.p: Use console.error() instead.'); + assert.equal(stack[0], 'Trace: util.p: Use console.error() instead'); assert.equal(stack.pop(), '\'This is deprecated\''); console.log('trace ok'); }); diff --git a/test/simple/test-util-debug.js b/test/simple/test-util-debug.js index 1506e1af80..6d9c28a95a 100644 --- a/test/simple/test-util-debug.js +++ b/test/simple/test-util-debug.js @@ -80,7 +80,7 @@ function test(environ, shouldWrite) { function child() { var util = require('util'); - var debug = util.debug('tud'); + var debug = util.debuglog('tud'); debug('this', { is: 'a' }, /debugging/); debug('number=%d string=%s obj=%j', 1234, 'asdf', { foo: 'bar' }); console.log('ok');