diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2023-05-15 07:07:09 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2023-05-15 07:11:22 +0200 |
commit | 92155e15d3cfe97758552484acb1583aaf71cda6 (patch) | |
tree | b5a55af560f214f53220262a2e64f43cd09cb7c4 | |
parent | 1d70fb400c2c8312dac3ff19a1bb1cb5351047ce (diff) | |
download | postgresql-92155e15d3cfe97758552484acb1583aaf71cda6.tar.gz postgresql-92155e15d3cfe97758552484acb1583aaf71cda6.zip |
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
-rw-r--r-- | src/bin/pg_amcheck/t/004_verify_heapam.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_amcheck/t/004_verify_heapam.pl b/src/bin/pg_amcheck/t/004_verify_heapam.pl index e77b50c6c55..aa624223169 100644 --- a/src/bin/pg_amcheck/t/004_verify_heapam.pl +++ b/src/bin/pg_amcheck/t/004_verify_heapam.pl @@ -340,7 +340,7 @@ my @lp_off = split '\n', $node->safe_psql( FROM heap_page_items(get_raw_page('test', 'main', 0)) ) ); -is(scalar @lp_off, $ROWCOUNT, "acquired row offsets"); +scalar @lp_off == $ROWCOUNT or BAIL_OUT("row offset counts mismatch"); # Sanity check that our 'test' table on disk layout matches expectations. If # this is not so, we will have to skip the test until somebody updates the test |