From a067b50470cf7fda77dd28b03519f2483c2322bf Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 1 Apr 2016 12:25:17 -0400 Subject: [PATCH] Get rid of minus zero in box regression test. Commit acdf2a8b added a test case involving minus zero as a box endpoint. This is not very portable, as evidenced by the several older buildfarm members that are failing on the test because they print minus zero as just "0". If there were any significant reason to test this behavior, we could consider carrying a separate expected-file; but it doesn't look to me like there's adequate justification to accept such a maintenance burden. Just change the test to use plain zero, instead. --- src/test/regress/expected/box.out | 6 +++--- src/test/regress/sql/box.sql | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/expected/box.out b/src/test/regress/expected/box.out index 7e251a3a56..5f8b9455e8 100644 --- a/src/test/regress/expected/box.out +++ b/src/test/regress/expected/box.out @@ -225,7 +225,7 @@ INSERT INTO box_temp CREATE INDEX box_spgist ON box_temp USING spgist (f1); INSERT INTO box_temp VALUES (NULL), - ('(-0,0)(0,100)'), + ('(0,0)(0,100)'), ('(-3,4.3333333333)(40,1)'), ('(0,100)(0,infinity)'), ('(-infinity,0)(0,infinity)'), @@ -238,7 +238,7 @@ SELECT * FROM box_temp WHERE f1 << '(10,20),(30,40)'; (4,4),(2,2) (6,6),(3,3) (8,8),(4,4) - (-0,100),(0,0) + (0,100),(0,0) (0,Infinity),(0,100) (0,Infinity),(-Infinity,0) (7 rows) @@ -258,7 +258,7 @@ SELECT * FROM box_temp WHERE f1 &< '(10,4.333334),(5,100)'; (6,6),(3,3) (8,8),(4,4) (10,10),(5,5) - (-0,100),(0,0) + (0,100),(0,0) (0,Infinity),(0,100) (0,Infinity),(-Infinity,0) (8 rows) diff --git a/src/test/regress/sql/box.sql b/src/test/regress/sql/box.sql index 1c9e52e0a3..128a016963 100644 --- a/src/test/regress/sql/box.sql +++ b/src/test/regress/sql/box.sql @@ -132,7 +132,7 @@ CREATE INDEX box_spgist ON box_temp USING spgist (f1); INSERT INTO box_temp VALUES (NULL), - ('(-0,0)(0,100)'), + ('(0,0)(0,100)'), ('(-3,4.3333333333)(40,1)'), ('(0,100)(0,infinity)'), ('(-infinity,0)(0,infinity)'),