Skip to content

Commit 0f516d0

Browse files
committed
Fix pgbench permute tests.
One of the tests for the pgbench permute() function added by 6b258e3 fails on some 32-bit platforms, due to variations in the floating point computations in getrand(). The remaining tests give sufficient coverage, so just remove the failing test. Reported by Christoph Berg. Analysis by Thomas Munro and Tom Lane. Based on patch by Fabien Coelho. Discussion: https://postgr.es/m/YKQnUoYV63GRJBDD@msg.df7cb.de
1 parent 167bd48 commit 0f516d0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/bin/pgbench/t/001_pgbench_with_server.pl

-11
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,6 @@ sub pgbench
496496
qr{command=109.: boolean true\b},
497497
qr{command=110.: boolean true\b},
498498
qr{command=111.: boolean true\b},
499-
qr{command=112.: int 9223372036854775797\b},
500-
qr{command=113.: boolean true\b},
501499
],
502500
'pgbench expressions',
503501
{
@@ -643,15 +641,6 @@ sub pgbench
643641
\set t debug(permute(:v, 1) = 0)
644642
\set t debug(permute(0, 2, 5432) = 0 and permute(1, 2, 5432) = 1 and \
645643
permute(0, 2, 5435) = 1 and permute(1, 2, 5435) = 0)
646-
-- 63 bits tests
647-
\set size debug(:max - 10)
648-
\set t debug(permute(:size-1, :size, 5432) = 5301702756001087507 and \
649-
permute(:size-2, :size, 5432) = 8968485976055840695 and \
650-
permute(:size-3, :size, 5432) = 6708495591295582115 and \
651-
permute(:size-4, :size, 5432) = 2801794404574855121 and \
652-
permute(:size-5, :size, 5432) = 1489011409218895840 and \
653-
permute(:size-6, :size, 5432) = 2267749475878240183 and \
654-
permute(:size-7, :size, 5432) = 1300324176838786780)
655644
}
656645
});
657646

0 commit comments

Comments
 (0)