Skip to content

Commit 14793f4

Browse files
committed
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 9706092, because it has always bumped on an authentication failure rather than an error about the role not existing. Oversight in eef4a33, 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
1 parent 2f12df7 commit 14793f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_amcheck/t/002_nonesuch.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Test set-up
1212
my ($node, $port);
1313
$node = PostgreSQL::Test::Cluster->new('test');
14-
$node->init;
14+
$node->init(auth_extra => [ '--create-role' => 'no_such_user' ]);
1515
$node->start;
1616
$port = $node->port;
1717

0 commit comments

Comments
 (0)