Fix incorrect TAP test ordering
commit92155e15d3cfe97758552484acb1583aaf71cda6
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 15 May 2023 05:07:09 +0000 (15 07:07 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 15 May 2023 05:11:22 +0000 (15 07:11 +0200)
treeb5a55af560f214f53220262a2e64f43cd09cb7c4
parent1d70fb400c2c8312dac3ff19a1bb1cb5351047ce
Fix incorrect TAP test ordering

Using a test function before a possible skip_all is incorrect.  If the
skip_all is called, the test output will become incorrect and the test
file will fail.

a4f23f9b3c introduced a new test before skip_all.  After discussion,
this doesn't really need to be a test.  Instead, we just bail out if
the condition is not satisfied.

Discussion: https://www.postgresql.org/message-id/af5567a1-aea6-fbdb-7e4b-d1e23a43c43b@enterprisedb.com
src/bin/pg_amcheck/t/004_verify_heapam.pl