projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c9c113
)
Bail out early if the test server is completely unreachable
author
Greg Sabino Mullane
<
[email protected]
>
Wed, 23 May 2012 03:32:56 +0000
(23:32 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Wed, 23 May 2012 03:32:56 +0000
(23:32 -0400)
t/02_autovac_freeze.t
patch
|
blob
|
blame
|
history
diff --git
a/t/02_autovac_freeze.t
b/t/02_autovac_freeze.t
index 4fd585d3f74de8142d2b74aa6d001229381a6ab8..5ab0d7e314cf7f25028dd485e1abce630efc1355 100644
(file)
--- a/
t/02_autovac_freeze.t
+++ b/
t/02_autovac_freeze.t
@@
-27,8
+27,15
@@
SKIP:
{
$ver < 80200 and skip 'Cannot test autovac_freeze on old Postgres versions', 8;
-$t = qq{$S self-identifies correctly};
$result = $cp->run(q{-w 0%});
+
+## As this is the first alphabetic test, let's make an emergency bailout if
+## the server is not reachable at all!
+if ($result =~ /ERROR.+cptesting_socket/s) {
+ BAIL_OUT 'Could not connect to the testing database server!';
+}
+
+$t = qq{$S self-identifies correctly};
like ($result, qr{^$label}, $t);
$t = qq{$S identifies host};