summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-10-09 01:45:49 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-10-09 01:45:49 +0000
commit3d32b17798a2852ea7dd66115e6558a0095aaaac (patch)
tree558d6972740149a2a6ff309645715a96e5df88b4
parent536174382695ddea59482b4210a3dacfabd39bb9 (diff)
downloadpostgresql-3d32b17798a2852ea7dd66115e6558a0095aaaac.tar.gz
Fix back-branch pg_regress scripts to try the "canonical" expected file if we
tried a variant file from resultmap and it didn't match. This is already done in HEAD's C-code version, and is needed because OpenBSD has recently migrated to a more standard handling of float underflow --- see buildfarm results from emu.
-rw-r--r--src/test/regress/pg_regress.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh
index f3498d772f..d62afddf18 100644
--- a/src/test/regress/pg_regress.sh
+++ b/src/test/regress/pg_regress.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.53.4.3 2006/06/19 14:25:01 tgl Exp $
+# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.53.4.4 2006/10/09 01:45:49 tgl Exp $
me=`basename $0`
: ${TMPDIR=/tmp}
@@ -680,7 +680,8 @@ do
# to a system-specific expected file.
# There shouldn't be multiple matches, but take the last if there are.
- EXPECTED="$inputdir/expected/${name}"
+ STDEXPECTED="$inputdir/expected/${name}"
+ EXPECTED="$STDEXPECTED"
for LINE in $SUBSTLIST
do
if [ `expr "$LINE" : "$name="` -ne 0 ]
@@ -690,13 +691,14 @@ do
fi
done
- # If there are multiple equally valid result files, loop to get the right one.
+ # If there are multiple equally valid result files,
+ # loop to get the right one.
# If none match, diff against the closest one.
bestfile=
bestdiff=
result=2
- for thisfile in $EXPECTED.out ${EXPECTED}_[0-9].out; do
+ for thisfile in $EXPECTED.out ${EXPECTED}_[0-9].out $STDEXPECTED.out; do
[ ! -r "$thisfile" ] && continue
diff $DIFFFLAGS $thisfile $outputdir/results/${name}.out >/dev/null 2>&1
result=$?