[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Let stderr output end up on fd 2 in testsuite.
From: |
Ralf Wildenhues |
Subject: |
Let stderr output end up on fd 2 in testsuite. |
Date: |
Wed, 22 Oct 2008 21:37:53 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
A trivial cleanup patch, pushed.
Cheers,
Ralf
Let stderr output end up on fd 2 in testsuite.
* tests/defs.in (AUTOMAKE_run): Output recorded stderr on file
descriptor 2.
* tests/getopt.test: Fix erroneous multiple redirection,
uncovered by above change.
diff --git a/tests/defs.in b/tests/defs.in
index c0e310f..e7d9d39 100644
--- a/tests/defs.in
+++ b/tests/defs.in
@@ -382,7 +382,7 @@ AUTOMAKE_run ()
shift
exitcode=0
$AUTOMAKE ${1+"$@"} >stdout 2>stderr || exitcode=$?
- cat stderr
+ cat stderr >&2
cat stdout
test $exitcode = $expected_exitcode || Exit 1
}
diff --git a/tests/getopt.test b/tests/getopt.test
index 46fcb4e..8dc9512 100755
--- a/tests/getopt.test
+++ b/tests/getopt.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2008 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -31,7 +31,7 @@ grep ':.*nonexistent' stderr && Exit 1
# Similarly, this should fail ...
-AUTOMAKE_fails --nonexistent 2>stderr
+AUTOMAKE_fails --nonexistent
grep ':.*nonexistent' stderr
# ... but this should not.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Let stderr output end up on fd 2 in testsuite.,
Ralf Wildenhues <=