* tests/defs.in (AUTOMAKE_run): Output recorded stderr on file
descriptor 2.
* tests/getopt.test: Fix erroneous multiple redirection,
uncovered by above change.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2008-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ 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.
+
2008-10-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Fix DisjConditions module to be thread-safe for perl >= 5.7.2.
shift
exitcode=0
$AUTOMAKE ${1+"$@"} >stdout 2>stderr || exitcode=$?
- cat stderr
+ cat stderr >&2
cat stdout
test $exitcode = $expected_exitcode || Exit 1
}
#! /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
# Similarly, this should fail ...
-AUTOMAKE_fails --nonexistent 2>stderr
+AUTOMAKE_fails --nonexistent
grep ':.*nonexistent' stderr
# ... but this should not.