Blame SOURCES/DBD-Pg-3.7.4-Fix-test-to-allow-for-changed-message-of-pg_ctl-outp.patch

013f5e
From 575c869da97a9f387cb26016f521e02b2708eb71 Mon Sep 17 00:00:00 2001
013f5e
From: Erik Rijkers <er@xs4all.nl>
013f5e
Date: Mon, 8 Apr 2019 21:53:17 -0400
013f5e
Subject: [PATCH] Fix test to allow for changed message of pg_ctl output. CPAN
013f5e
 RT #128966
013f5e
MIME-Version: 1.0
013f5e
Content-Type: text/plain; charset=UTF-8
013f5e
Content-Transfer-Encoding: 8bit
013f5e
013f5e
Signed-off-by: Petr Písař <ppisar@redhat.com>
013f5e
---
013f5e
 t/dbdpg_test_setup.pl | 2 +-
013f5e
 1 file changed, 1 insertion(+), 1 deletion(-)
013f5e
013f5e
diff --git a/t/dbdpg_test_setup.pl b/t/dbdpg_test_setup.pl
013f5e
index 24f44ab..8dd17a2 100644
013f5e
--- a/t/dbdpg_test_setup.pl
013f5e
+++ b/t/dbdpg_test_setup.pl
013f5e
@@ -331,7 +331,7 @@ version: $version
013f5e
 			$info = qx{$pg_ctl --help 2>&1;;
013f5e
 		};
013f5e
 		last GETHANDLE if $@; ## Fail - pg_ctl bad
013f5e
-		if (!defined $info or ($info !~ /\@postgresql\.org/ and $info !~ /run as root/)) {
013f5e
+		if (!defined $info or ($info !~ /\@[a-z.-]*?postgresql\.org/ and $info !~ /run as root/)) {
013f5e
 			$@ = defined $initdb ? "Bad pg_ctl output: $info" : 'Bad pg_ctl output';
013f5e
 			last GETHANDLE; ## Fail - pg_ctl bad
013f5e
 		}
013f5e
-- 
013f5e
2.21.0
013f5e