When log_error_verbosity=verbose is configured the test would hand (and then
fail), because of the sqlstate being added between log level and message. Make
regex cope.
Reported-by: Andrew Dunstan <[email protected]>
Discussion: https://postgr.es/m/
c7ba6bd0-3701-43d1-9087-
017777fe9cd2%40dunslane.net
my $log_location = -s $node->logfile;
$node->connect_fails($connstr, $test_name, %params);
- $node->wait_for_log(qr/DEBUG: client backend.*exited with exit code 1/,
+ $node->wait_for_log(qr/DEBUG: (00000: )?client backend.*exited with exit code 1/,
$log_location);
ok(1, "$test_name: client backend process exited");
}