Autoconf: Patch sloppy test case.

svn path=/nixpkgs/trunk/; revision=16511
This commit is contained in:
Ludovic Courtès 2009-07-29 19:39:15 +00:00
parent 6e75b20d46
commit 4456c7496a
2 changed files with 20 additions and 7 deletions

View File

@ -8,15 +8,11 @@ stdenv.mkDerivation rec {
sha256 = "11damk9x09616cjdfxx9y73igd96zzylgq0l4j57qzify6nlqbw7";
};
patches = [ ./test-suite-fix.patch ];
buildInputs = [ m4 perl ];
# FIXME: The test suite fails on Darwin (see
# http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/6813) and on
# Cygwin (see http://hydra.nixos.org/build/53814; yet to be reported
# upstream).
doCheck =
(builtins.currentSystem != "i686-darwin")
&& (builtins.currentSystem != "i686-cygwin");
doCheck = true;
# Don't fixup "#! /bin/sh" in Autoconf, otherwise it will use the
# "fixed" path in generated files!

View File

@ -0,0 +1,17 @@
This patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> fixes
the "Hard fail" test case.
See http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/6814
for details.
--- a/tests/autotest.at
+++ b/tests/autotest.at
@@ -271,7 +271,7 @@ AT_CHECK_AT_TEST([Hard fail],
AT_CHECK([exit 99])],
[], [1], [], [ignore], [],
[AT_CHECK([grep '2 failed unexpectedly' micro-suite.log], [], [ignore])
- AT_CHECK([grep ok micro-suite.log], [1])])
+ AT_CHECK([grep '^[[12]].*ok' micro-suite.log], [1])])
AT_CHECK_AT_TEST([AT@&t@_FAIL_IF],
[AT_FAIL_IF([:])