+2010-06-12 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ cscope.test: ensure verbose printing of captured stderr.
+ * tests/cscope.test: Print captured stderr before failing.
+
2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Fix license headers of cscope tests to be GPLv2+.
#! /bin/sh
-# Copyright (C) 2009 Free Software Foundation, Inc.
+# Copyright (C) 2009, 2010 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
: ${CSCOPE=cscope}
( $CSCOPE --version ) >/dev/null 2>&1 || Exit 77
-$MAKE cscope 2>stderr
+$MAKE cscope 2>stderr || { cat stderr >&2; Exit 1; }
cat stderr >&2
grep 'cannot find file' stderr && Exit 1
`pwd`/../configure || Exit 77
-$MAKE cscope 2>stderr
+$MAKE cscope 2>stderr || { cat stderr >&2; Exit 1; }
cat stderr >&2
grep 'cannot find file' stderr && Exit 1
$MAKE distclean