diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-02-07 16:22:36 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-02-07 16:22:36 +0100 |
commit | 2682a280c8095a367fc8cbe2c1323ba4340f75e8 (patch) | |
tree | 4c6aeb798dcb963b0df31cf3da1e823a70d67608 /mysql-test/suite/federated | |
parent | e83dd9b517239dedb727263c7eeda89ada6d4c57 (diff) | |
download | mariadb-git-2682a280c8095a367fc8cbe2c1323ba4340f75e8.tar.gz |
allow suite.pm to skip combinations that originate from test/include files.
storage/innobase/handler/handler0alter.cc:
for NEWDATE key_type says unsigned, thus col->prtype says unsigned,
but field->flags says signed. Use the same flag for value retrieval
that was used for value storage.
Diffstat (limited to 'mysql-test/suite/federated')
-rw-r--r-- | mysql-test/suite/federated/suite.pm | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/mysql-test/suite/federated/suite.pm b/mysql-test/suite/federated/suite.pm index 06458b97adc..6b97fd6528e 100644 --- a/mysql-test/suite/federated/suite.pm +++ b/mysql-test/suite/federated/suite.pm @@ -2,18 +2,17 @@ package My::Suite::Federated; @ISA = qw(My::Suite); -############# initialization ###################### -my @combinations; +sub skip_combinations { + my @combinations; -push @combinations, 'old' - if $ENV{HA_FEDERATED_SO} and not $::mysqld_variables{'federated'}; -push @combinations, 'X' - if $ENV{HA_FEDERATEDX_SO} or $::mysqld_variables{'federated'}; + push @combinations, 'old' + unless $ENV{HA_FEDERATED_SO} and not $::mysqld_variables{'federated'}; + push @combinations, 'X' + unless $ENV{HA_FEDERATEDX_SO} or $::mysqld_variables{'federated'}; -return "Neither Federated nor FederatedX are available" unless @combinations; + ( 'combinations' => [ @combinations ] ) +} -$ENV{FEDERATED_COMBINATIONS}=join ':', @combinations - unless $ENV{FEDERATED_COMBINATIONS}; ############# return an object ###################### bless { }; |