Skip to content
Browse files

use process.execPath and not ./bin/vows in for cmd in call to exec().…

… Fix for windows
  • Loading branch information...
1 parent cde6d9b commit e85197b2f77b9b180f573f0ecddfb9ef3e22c91e @stammen stammen committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/supress-stdout-test.js
View
2 test/supress-stdout-test.js
@@ -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;

0 comments on commit e85197b

Please sign in to comment.
Something went wrong with that request. Please try again.