Fix failing build test and add another build test.

Former-commit-id: dccae3f43f55dda764750880e37c5e0682f32095
This commit is contained in:
John-David Dalton
2013-02-03 01:23:40 -08:00
parent f87b4e04f1
commit d2a7589f7c
2 changed files with 14 additions and 6 deletions

View File

@@ -1030,7 +1030,8 @@
(function() {
var commands = [
'-c',
'--stdout'
'-c -d',
'--stdout',
];
commands.forEach(function(command, index) {
@@ -1043,7 +1044,7 @@
written = string;
};
build([command, 'exports=', 'include='], function(data) {
build(['exports=', 'include='].concat(command.split(' ')), function(data) {
process.stdout.write = write;
equal(written, data.source);
equal(arguments.length, 1);