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

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