pgsql: pg_amcheck: Fix test failure on Windows with non-existing role - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: pg_amcheck: Fix test failure on Windows with non-existing role
Date
Msg-id E1tcBld-003jyN-9F@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
pg_amcheck: Fix test failure on Windows with non-existing role

For SSPI auth extra users need to be explicitly allowed, or we get
"SSPI authentication failed" instead of the expected "role does not
exist" error.

This report also means that the test has never worked on Windows since
its introduction in 9706092839db, because it has always bumped on an
authentication failure rather than an error about the role not existing.

Oversight in eef4a33f62f7, that has added a pattern check on the error
generated by the command.

Per report from Tom Lane, via buildfarm member drongo.

Author: Dagfinn Ilmari Mannsåker
Reviewed-by: Andrew Dunstan
Discussion: https://postgr.es/m/379085.1737734611@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/14793f47192b5eb02197cd03afb88559d7514b76

Modified Files
--------------
src/bin/pg_amcheck/t/002_nonesuch.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Test postmaster with program_options_handling_ok() et al.
Next
From: Michael Paquier
Date:
Subject: pgsql: Print out error position for some ALTER TABLE ALTER COLUMN type