Add error pattern checks for some TAP tests for non-existing objects
Michael Paquier <michael@paquier.xyz>
Add error pattern checks for some TAP tests for non-existing objects Some tests are updated to use command_fails_like(), gaining a check for the error output generated. The test changed in pg_amcheck has come up after noticing that an incorrect option name still made the test to pass, while the command failed. The three other tests changed in src/bin/scripts/ have been noticed by me, in passing. Author: Dagfinn Ilmari Mannsåker, Michael Paquier Discussion: https://postgr.es/m/87bjvy50cs.fsf@wibble.ilmari.org
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_amcheck/t/002_nonesuch.pl | modified | +4 −1 |
| src/bin/scripts/t/010_clusterdb.pl | modified | +3 −1 |
| src/bin/scripts/t/050_dropdb.pl | modified | +3 −1 |
| src/bin/scripts/t/070_dropuser.pl | modified | +3 −1 |
Discussion
- pg_createsubscriber TAP test wrapping makes command options hard to read. 43 messages · 2024-12-12 → 2025-01-28