[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.
This commit is contained in:
HDF Admin 2006-04-19 13:39:21 -05:00
parent 220fdf4113
commit 16d927b68b

View File

@ -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