packages: mksh/mksh-exit_tests.patch (NEW) - patch to test suite for nonzer...
draenog
draenog at pld-linux.org
Tue May 10 00:09:57 CEST 2011
Author: draenog Date: Mon May 9 22:09:57 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- patch to test suite for nonzero exit code when failed
---- Files affected:
packages/mksh:
mksh-exit_tests.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/mksh/mksh-exit_tests.patch
diff -u /dev/null packages/mksh/mksh-exit_tests.patch:1.1
--- /dev/null Tue May 10 00:09:57 2011
+++ packages/mksh/mksh-exit_tests.patch Tue May 10 00:09:52 2011
@@ -0,0 +1,15 @@
+--- check.pl~ 2011-05-09 14:35:34.357336648 +0100
++++ check.pl 2011-05-09 14:48:30.991232019 +0100
+@@ -324,7 +324,11 @@
+ local($sig, $exitcode) = ('', 1);
+
+ if ($_[0] eq 'ok') {
+- $exitcode = 0;
++ unless ($nxfailed) {
++ $exitcode = 0;
++ } else {
++ $exitcode = 1;
++ }
+ } elsif ($_[0] ne '') {
+ $sig = $_[0];
+ }
================================================================
More information about the pld-cvs-commit
mailing list