From 326019ef74f35939317204db638566d968488480 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Mon, 7 Apr 2014 17:03:51 -0700 Subject: [PATCH] Add failing test for bug 1304062. --- t/lib/SchemaIterator.t | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/t/lib/SchemaIterator.t b/t/lib/SchemaIterator.t index 8544fc1f..d5699366 100644 --- a/t/lib/SchemaIterator.t +++ b/t/lib/SchemaIterator.t @@ -197,7 +197,7 @@ SKIP: { result => "d1.t3 ", test_name => '--ignore-databases and --ignore-tables', ); - + # Select some dbs but ignore some tables. test_so( filters => ['-d', 'd1', '--ignore-tables', 't1,t3'], @@ -563,6 +563,20 @@ test_so( diag(`/tmp/12345/use < $trunk/t/lib/samples/100-dbs-drop.sql`); + +# ############################################################################# +# https://bugs.launchpad.net/percona-toolkit/+bug/1304062 +# ############################################################################# + +$sb->load_file('master', "t/lib/samples/SchemaIterator.sql"); +$dbh->do("CREATE TABLE d3.t1 (id int auto_increment primary key, c char(8))"); + +test_so( + filters => ['--ignore-tables', 'd1.t1,d2.t1'], + result => "d1.t2 d1.t3 d3.t1 mysql.columns_priv mysql.db mysql.event mysql.func mysql.help_category mysql.help_keyword mysql.help_relation mysql.help_topic mysql.ndb_binlog_index mysql.plugin mysql.proc mysql.procs_priv mysql.proxies_priv mysql.servers mysql.tables_priv mysql.time_zone mysql.time_zone_leap_second mysql.time_zone_name mysql.time_zone_transition mysql.time_zone_transition_type mysql.user percona_test.checksums percona_test.load_data percona_test.sentinel sakila.actor sakila.address sakila.category sakila.city sakila.country sakila.customer sakila.film sakila.film_actor sakila.film_category sakila.film_text sakila.inventory sakila.language sakila.payment sakila.rental sakila.staff sakila.store ", + test_name => '--ignore-tables (bug 1304062)', +); + # ############################################################################# # Done. # #############################################################################