Commit aab94602 authored by Ross Gammon's avatar Ross Gammon

Refresh test_fix.patch

parent 4bcd3884
......@@ -15,16 +15,16 @@ Author: Ross Gammon <rossgammons@mail.dk>
var file = __dirname + '/fixtures/shebang_noenv';
fs.writeFileSync(file, '#!' + nodejs + '\n\nprocess.stdout.write(\'shebang works!\');', {
@@ -103,7 +103,7 @@
@@ -120,7 +120,7 @@
});
it('should support shebang in executables with extensions', function (next) {
- fs.writeFileSync(__dirname + '/tmp/shebang.js', '#!/usr/bin/env node\n\nprocess.stdout.write(\'shebang with extension\');', { mode: parseInt('0777', 8) });
+ fs.writeFileSync(__dirname + '/tmp/shebang.js', '#!/usr/bin/env nodejs\n\nprocess.stdout.write(\'shebang with extension\');', { mode: parseInt('0777', 8) });
- fs.writeFileSync(__dirname + '/tmp/shebang.js', '#!/usr/bin/env node\n\nprocess.stdout.write(\'shebang with extension\');',
+ fs.writeFileSync(__dirname + '/tmp/shebang.js', '#!/usr/bin/env nodejs\n\nprocess.stdout.write(\'shebang with extension\');',
{ mode: parseInt('0777', 8) });
process.env.PATH = path.normalize(__dirname + '/tmp/') + path.delimiter + process.env.PATH;
buffered(__dirname + '/tmp/shebang.js', function (err, data, code) {
@@ -155,7 +155,7 @@
@@ -187,7 +187,7 @@
});
it('should handle empty arguments', function (next) {
......@@ -33,16 +33,16 @@ Author: Ross Gammon <rossgammons@mail.dk>
__dirname + '/fixtures/echo',
'foo',
'',
@@ -180,7 +180,7 @@
@@ -212,7 +212,7 @@
});
it('should handle non-string arguments', function (next) {
- buffered('node', [
+ buffered('nodejs', [
__dirname + '/fixtures/echo',
1234
1234,
], function (err, data, code) {
@@ -193,7 +193,7 @@
@@ -225,7 +225,7 @@
});
it('should handle arguments with spaces', function (next) {
......@@ -50,8 +50,8 @@ Author: Ross Gammon <rossgammons@mail.dk>
+ buffered('nodejs', [
__dirname + '/fixtures/echo',
'I am',
'André Cruz'
@@ -207,7 +207,7 @@
'André Cruz',
@@ -239,7 +239,7 @@
});
it('should handle arguments with \\"', function (next) {
......@@ -60,7 +60,7 @@ Author: Ross Gammon <rossgammons@mail.dk>
__dirname + '/fixtures/echo',
'foo',
'\\"',
@@ -222,7 +222,7 @@
@@ -254,7 +254,7 @@
});
it('should handle arguments that end with \\', function (next) {
......@@ -69,7 +69,7 @@ Author: Ross Gammon <rossgammons@mail.dk>
__dirname + '/fixtures/echo',
'foo',
'bar\\',
@@ -237,7 +237,7 @@
@@ -269,7 +269,7 @@
});
it('should handle arguments that contain shell special chars', function (next) {
......@@ -78,7 +78,7 @@ Author: Ross Gammon <rossgammons@mail.dk>
__dirname + '/fixtures/echo',
'foo',
'()',
@@ -332,7 +332,7 @@
@@ -364,7 +364,7 @@
});
it('should give correct exit code', function (next) {
......@@ -89,8 +89,9 @@ Author: Ross Gammon <rossgammons@mail.dk>
--- node-cross-spawn-async.orig/test/fixtures/shebang
+++ node-cross-spawn-async/test/fixtures/shebang
@@ -1,3 +1,3 @@
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/env nodejs
process.stdout.write('shebang works!');
'use strict';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment