var fs = require('fs'),
    path = require('path'),
    reporter = require('nodeunit').reporters.default;

var dirName = path.join(__dirname, './fixtures'),
    testFiles = fs.readdirSync(dirName);

process.chdir(dirName);
reporter.run(testFiles);


var fs = require('fs'),
    path = require('path'),
    reporter = require('nodeunit').reporters.default;

var dirName = path.join(__dirname, './fixtures'),
    testFiles = fs.readdirSync(dirName);

process.chdir(dirName);

reporter.run(testFiles, null, function (err) {
    if(err)
        process.exit(1);
});


Test runs now fails with correct exit code
Test runs now fails with correct exit code
