summaryrefslogtreecommitdiffstats
path: root/test/testerror.sh
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-04-17 20:29:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-04-17 20:29:01 (GMT)
commit7456a9293d0672d8c327f58951b30aa911d95dc2 (patch)
treea40f7080948349b3ce0a2549b3bbbc82f389fb40 /test/testerror.sh
parentd08090ff29eaef0c315a1abce7df94bcc902c2fc (diff)
downloadhdf5-7456a9293d0672d8c327f58951b30aa911d95dc2.zip
hdf5-7456a9293d0672d8c327f58951b30aa911d95dc2.tar.gz
hdf5-7456a9293d0672d8c327f58951b30aa911d95dc2.tar.bz2
[svn-r8375] Purpose:
Bug fix. Description: Allow the recent changes to support correct srcdir operation to also work when building in place. Platforms tested: FreeBSD 4.9 (sleipnir) h5committest Misc. update:
Diffstat (limited to 'test/testerror.sh')
-rw-r--r--test/testerror.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/testerror.sh b/test/testerror.sh
index 3c82728..c06df9e 100644
--- a/test/testerror.sh
+++ b/test/testerror.sh
@@ -44,19 +44,23 @@ TESTING() {
# non-zero value.
#
TEST() {
+ TEST_ERR=$1 # The test name
+ TEST_ERR_BIN=`pwd`/$TEST_ERR # The path of the test binary
+
expect1="$srcdir/testfiles/$1_1"
expect2="$srcdir/testfiles/$1_2"
actual="./`basename $1`.out"
actual_err="./`basename $1`.err"
actual_ext="./`basename $1`.ext"
+ shift
# Run test.
TESTING $1
(
echo "#############################"
- echo "Expected output for $1"
+ echo "Expected output for $TEST_ERR"
echo "#############################"
- $RUNSERIAL $1
+ $RUNSERIAL $TEST_ERR_BIN
) >$actual 2>$actual_err
# Extract file name, line number, version and thread IDs because they may be different
sed -e 's/thread [0-9]*/thread (IDs)/' -e 's/: .*\.c /: (file name) /' -e 's/line [0-9]*/line (number)/' -e 's/[1-9]*\.[0-9]*\.[0-9]*/version (number)/' $actual_err > $actual_ext