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

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