[Pkg-javascript-commits] [node-cross-spawn-async] 04/09: Refresh test_fix.patch

Ross Gammon ross-guest at moszumanska.debian.org
Sat Nov 12 18:43:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

ross-guest pushed a commit to branch master
in repository node-cross-spawn-async.

commit aab94602a306b1cccdd5c2f8b3dadf62edf9c763
Author: Ross Gammon <rossgammon at mail.dk>
Date:   Sat Nov 12 16:53:57 2016 +0100

    Refresh test_fix.patch
---
 debian/patches/test_fix.patch | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/debian/patches/test_fix.patch b/debian/patches/test_fix.patch
index cbd14f3..25fb5ff 100644
--- a/debian/patches/test_fix.patch
+++ b/debian/patches/test_fix.patch
@@ -15,16 +15,16 @@ Author: Ross Gammon <rossgammons at 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 at 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 at 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 at 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 at 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 at 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 at 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';
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cross-spawn-async.git



More information about the Pkg-javascript-commits mailing list