src: disable fast math on arm
[platform/upstream/nodejs.git] / test / parallel / test-child-process-default-options.js
1 var common = require('../common');
2 var assert = require('assert');
3
4 var spawn = require('child_process').spawn;
5
6 var isWindows = process.platform === 'win32';
7
8 process.env.HELLO = 'WORLD';
9
10 if (isWindows) {
11   var child = spawn('cmd.exe', ['/c', 'set'], {});
12 } else {
13   var child = spawn('/usr/bin/env', [], {});
14 }
15
16 var response = '';
17
18 child.stdout.setEncoding('utf8');
19
20 child.stdout.on('data', function(chunk) {
21   console.log('stdout: ' + chunk);
22   response += chunk;
23 });
24
25 process.on('exit', function() {
26   assert.ok(response.indexOf('HELLO=WORLD') >= 0,
27             'spawn did not use process.env as default');
28 });