Skip to content

Commit

Permalink
use process.execPath and not ./bin/vows in for cmd in call to exec().…
Browse files Browse the repository at this point in the history
… Fix for windows
  • Loading branch information
stammen committed Nov 15, 2012
1 parent cde6d9b commit e85197b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/supress-stdout-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var assert = require('assert'),

function generateTopic(supress) {
return function () {
var cmd = './bin/vows ' + (supress ? '--supress-stdout ' : '') +
var cmd = '"' + process.execPath + '"' + ' ./bin/vows ' + (supress ? '--supress-stdout ' : '') +
'./test/fixtures/supress-stdout/output.js',
options = {cwd: path.resolve(__dirname + '/../')},
callback = this.callback;
Expand Down

0 comments on commit e85197b

Please sign in to comment.