pg_upgrade: Check for the expected error message in TAP tests.
authorMasahiko Sawada <msawada@postgresql.org>
Tue, 4 Mar 2025 19:16:12 +0000 (11:16 -0800)
committerMasahiko Sawada <msawada@postgresql.org>
Tue, 4 Mar 2025 19:16:12 +0000 (11:16 -0800)
commitf52345995d3691de7b0a888903b6cfed1497c672
tree1e8e868398106efa7af93c06b60ba28b9cc6f90b
parent7bbc46213de9301795da90923a015070239c1fcc
pg_upgrade: Check for the expected error message in TAP tests.

Since pg_upgrade prints its error messages on stdout, we can't use
command_fails_like() to check if it fails for the right reason. This
commit uses command_checks_all() in pg_upgrade TAP tests to check the
exit status and stdout, enabling proper verification of error
reasons.

Author: Dagfinn Ilmari MannsÃ¥ker <ilmari@ilmari.org>
Discussion: https://postgr.es/m/87tt8h1vb7.fsf@wibble.ilmari.org
src/bin/pg_upgrade/t/002_pg_upgrade.pl
src/bin/pg_upgrade/t/004_subscription.pl
src/bin/pg_upgrade/t/005_char_signedness.pl