autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fix testsuite failure on test 144


From: Eric Blake
Subject: fix testsuite failure on test 144
Date: Wed, 10 Sep 2008 20:10:39 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

I was able to reproduce Bob's testsuite failure by adding an echo to my 
config.site; the failure then went away with this patch (simpler than what I 
originally proposed on the bug-autoconf list).

From: Eric Blake <address@hidden>
Date: Wed, 10 Sep 2008 14:06:33 -0600
Subject: [PATCH] Avoid testsuite bug in presence of verbose config.site.

* tests/base.at (Input/Output): Nullify config.site during test.
Reported by Bob Friesenhahn.

Signed-off-by: Eric Blake <address@hidden>
---
 ChangeLog     |    6 ++++++
 tests/base.at |    9 ++++-----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4d53493..fa0aa49 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-10  Eric Blake  <address@hidden>
+
+       Avoid testsuite bug in presence of verbose config.site.
+       * tests/base.at (Input/Output): Nullify config.site during test.
+       Reported by Bob Friesenhahn.
+
 2008-09-09  Eric Blake  <address@hidden>
 
        Release Version 2.63.
diff --git a/tests/base.at b/tests/base.at
index d85a1b5..883db25 100644
--- a/tests/base.at
+++ b/tests/base.at
@@ -2,7 +2,7 @@
 
 AT_BANNER([Autoconf base layer.])
 
-# Copyright (C) 2000, 2001, 2003, 2005, 2006, 2007 Free Software
+# Copyright (C) 2000, 2001, 2003, 2005, 2006, 2007, 2008 Free Software
 # Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
@@ -294,15 +294,14 @@ AT_CLEANUP
 
 AT_SETUP([Input/Output])
 
-m4_pattern_allow([^AS_(MESSAGE|ORIGINAL_STDIN)_FD$])
 AT_DATA([configure.ac],
 [[AC_INIT
-cat <&AS_ORIGINAL_STDIN_FD >&AS_MESSAGE_FD
+cat <&AS@&address@hidden >&AS@&address@hidden
 ]])
 AT_CHECK_AUTOCONF
-AT_CHECK([echo Hello | ./configure | grep -v 'configure: loading site 
script '],, [Hello
+AT_CHECK([echo Hello | CONFIG_SITE=/dev/null ./configure | grep -v 'configure: 
loading site script '],, [Hello
 ])
-AT_CHECK([echo Hello | ./configure --silent])
+AT_CHECK([echo Hello | CONFIG_SITE=/dev/null ./configure --silent])
 
 AT_CLEANUP
 
-- 
1.6.0







reply via email to

[Prev in Thread] Current Thread [Next in Thread]