From bac1dad82e9072fc3155a095a729c051a764be0e Mon Sep 17 00:00:00 2001 From: Baron Schwartz Date: Tue, 5 Jun 2012 00:21:06 -0400 Subject: [PATCH] Add a check that sandbox servers are OK --- t/pt-slave-delay/auto_restart.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/pt-slave-delay/auto_restart.t b/t/pt-slave-delay/auto_restart.t index 11ba3acc..dfe1496c 100644 --- a/t/pt-slave-delay/auto_restart.t +++ b/t/pt-slave-delay/auto_restart.t @@ -29,7 +29,7 @@ elsif ( !@{$dbh->selectcol_arrayref('SHOW DATABASES LIKE "sakila"')} ) { plan skip_all => 'sakila db not loaded'; } else { - plan tests => 2; + plan tests => 3; } my $cnf = '/tmp/12346/my.sandbox.cnf'; @@ -99,4 +99,5 @@ waitpid ($pid, 0); # ############################################################################# # Done. # ############################################################################# +ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox"); exit;