summaryrefslogtreecommitdiffstats
path: root/test/testerror.sh
diff options
context:
space:
mode:
authorHDF Admin <hdfadmin@ncsa.uiuc.edu>2006-04-19 18:39:21 (GMT)
committerHDF Admin <hdfadmin@ncsa.uiuc.edu>2006-04-19 18:39:21 (GMT)
commit16d927b68b93c304fa3bdcf72317f159d689ae3f (patch)
treec805bed689f309fe60fbcfd2866bc5942468105c /test/testerror.sh
parent220fdf4113f65771ab227646b2a0207c93a26148 (diff)
downloadhdf5-16d927b68b93c304fa3bdcf72317f159d689ae3f.zip
hdf5-16d927b68b93c304fa3bdcf72317f159d689ae3f.tar.gz
hdf5-16d927b68b93c304fa3bdcf72317f159d689ae3f.tar.bz2
[svn-r12280] Purpose:
Bug fix. Description: It did not handle the case when version sub-release string is not empty. Solution: Fixed the sed substitution to remove the sub-release string too. Platforms tested: Heping.
Diffstat (limited to 'test/testerror.sh')
-rw-r--r--test/testerror.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/testerror.sh b/test/testerror.sh
index fbf9f51..789b86f 100644
--- a/test/testerror.sh
+++ b/test/testerror.sh
@@ -63,7 +63,10 @@ TEST() {
$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
+ 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
cat $actual_ext >> $actual
if $CMP $expect1 $actual; then