mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 16:40:19 +00:00

Only `test-stdin-from-file.js` has been modified so that the `stdin.txt` is written in a temp directory instead of the `fixtures` directory. PR-URL: https://github.com/nodejs/node/pull/6187 Reviewed-By: James M Snell <jasnell@gmail.com>
22 lines
410 B
JavaScript
22 lines
410 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
var assert = require('assert');
|
|
var net = require('net');
|
|
|
|
var address = null;
|
|
|
|
var server = net.createServer(function() {
|
|
assert(false); // should not be called
|
|
});
|
|
|
|
common.refreshTmpDir();
|
|
|
|
server.listen(common.PIPE, function() {
|
|
address = server.address();
|
|
server.close();
|
|
});
|
|
|
|
process.on('exit', function() {
|
|
assert.equal(address, common.PIPE);
|
|
});
|