From a85dffd5112d4825a1bae114ffcbecdad5798c84 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Mon, 9 Jan 2012 11:10:35 -0700 Subject: [PATCH] Test for bug 821709. --- t/pt-show-grants/basics.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/pt-show-grants/basics.t b/t/pt-show-grants/basics.t index a5727c0a..8a739739 100644 --- a/t/pt-show-grants/basics.t +++ b/t/pt-show-grants/basics.t @@ -23,7 +23,7 @@ if ( !$dbh ) { plan skip_all => 'Cannot connect to sandbox master'; } else { - plan tests => 9; + plan tests => 10; } $sb->wipe_clean($dbh); @@ -65,7 +65,11 @@ like( qr/at \d{4}/, 'It has a timestamp', ); - +like( + $output, + qr/^REVOKE ALL PRIVILEGES/m, + "Revoke statement is correct (bug 821709)" +); $output = output( sub { pt_show_grants::main('-F', $cnf, qw(--no-timestamp --drop --flush --revoke --separate)); }