mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
366 B
16 lines
366 B
14 years ago
|
// Can't test this when 'make test' doesn't assign a tty to the stdout.
|
||
|
var common = require('../common');
|
||
|
var assert = require('assert');
|
||
|
|
||
13 years ago
|
var exceptionCaught = false;
|
||
14 years ago
|
|
||
13 years ago
|
try {
|
||
|
process.stdout.end();
|
||
13 years ago
|
} catch (e) {
|
||
13 years ago
|
exceptionCaught = true;
|
||
|
assert.ok(common.isError(e));
|
||
13 years ago
|
assert.equal('process.stdout cannot be closed.', e.message);
|
||
13 years ago
|
}
|
||
|
|
||
|
assert.ok(exceptionCaught);
|