diff --git a/test/parallel/test-process-kill-null.js b/test/parallel/test-process-kill-null.js index 023724773f6276..a3d6cb0950f739 100644 --- a/test/parallel/test-process-kill-null.js +++ b/test/parallel/test-process-kill-null.js @@ -20,11 +20,14 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); const spawn = require('child_process').spawn; const cat = spawn('cat'); +if (cat.pid === undefined) { + common.skip('cat not available'); +} let called; assert.ok(process.kill(cat.pid, 0));