bug-gnulib
[Top][All Lists]
Advanced

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

Re: fpending test


From: Eric Blake
Subject: Re: fpending test
Date: Tue, 9 Oct 2007 14:14:44 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Bruno Haible <bruno <at> clisp.org> writes:

> 
> > The change looks fine.  You're welcome to commit it.
> 
> Committed.
> 

test-fpending.c blindly writes to stdout:

| PASS: test-fflush.exe
| fooPASS: test-fpending.exe
| PASS: test-fpurge.exe

I'm committing this to silence it from the user's perspective.

From: Eric Blake <address@hidden>
Date: Tue, 9 Oct 2007 08:09:48 -0600
Subject: [PATCH] Silence test-fpending.

* modules/fpending-tests (Files): Add wrapper script.
* tests/test-fpending.sh: New file.

Signed-off-by: Eric Blake <address@hidden>
---
 ChangeLog              |   12 +++++++++---
 modules/fpending-tests |    5 ++++-
 tests/test-fpending.sh |   12 ++++++++++++
 3 files changed, 25 insertions(+), 4 deletions(-)
 create mode 100755 tests/test-fpending.sh

diff --git a/ChangeLog b/ChangeLog
index 0033feb..bb9a664 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-09  Eric Blake  <address@hidden>
+
+       Silence test-fpending.
+       * modules/fpending-tests (Files): Add wrapper script.
+       * tests/test-fpending.sh: New file.
+
 2007-10-09  Bruno Haible  <address@hidden>
 
        * MODULES.html.sh (func_module): Don't create a hyperlink for
diff --git a/modules/fpending-tests b/modules/fpending-tests
index 0338987..c6261a5 100644
--- a/modules/fpending-tests
+++ b/modules/fpending-tests
@@ -1,10 +1,13 @@
 Files:
 tests/test-fpending.c
+tests/test-fpending.sh
 
 Depends-on:
 
 configure.ac:
 
 Makefile.am:
-TESTS += test-fpending
+TESTS += test-fpending.sh
+TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@'
 check_PROGRAMS += test-fpending
+MOSTLYCLEANFILES += test-fpending.t
diff --git a/tests/test-fpending.sh b/tests/test-fpending.sh
new file mode 100755
index 0000000..636af25
--- /dev/null
+++ b/tests/test-fpending.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+tmpfile=
+trap 'rm -fr $tmpfile' 1 2 3 15
+
+tmpfile=test-fpending.t
+
+./test-fpending${EXEEXT} > $tmpfile || exit 1
+
+rm -fr $tmpfile
+
+exit 0
-- 
1.5.3.2







reply via email to

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