MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Hema Sridharan Date:April 7 2009 7:18pm
Subject:bzr commit into mysql-6.0-backup-merge branch (hema:2793) Bug#43909
View as plain text  
#At file:///export/home/tmp/BUG43909/mysql-6.0-backup/ based on revid:ingo.struewing@stripped

 2793 Hema Sridharan	2009-04-07
      BUG#43909. backup_external_non_win test failed becasue of absence of dbi and dbd modules.
      The new include file have_dbi.inc is created which will skip the test if DBI and DBD modules are not installed in the 
      system
      added:
        mysql-test/suite/backup/include/have_dbi.inc
      modified:
        mysql-test/suite/backup/t/backup_external_non_win.test

=== added file 'mysql-test/suite/backup/include/have_dbi.inc'
--- a/mysql-test/suite/backup/include/have_dbi.inc	1970-01-01 00:00:00 +0000
+++ b/mysql-test/suite/backup/include/have_dbi.inc	2009-04-07 19:18:19 +0000
@@ -0,0 +1,29 @@
+# This script is written in order to skip the test if perl DBI modules are not
+# installed in the system
+
+disable_query_log;
+let $suffix= `SELECT UUID()`;
+enable_query_log;
+
+let $dbi_exists_file= $MYSQLTEST_VARDIR/tmp/dbi_exists.$suffix;
+let TMP_FILE= $dbi_exists_file;
+
+perl;
+my $success= 1;
+my $file= $ENV{'TMP_FILE'};
+eval "require DBI";
+eval "require DBD::mysql";
+if ($@)
+{
+  $success= 0;
+}
+open FH, "> $file";
+print FH "let \$dbi_exists= $success;";
+close FH; 
+EOF
+
+source $dbi_exists_file;
+remove_file $dbi_exists_file;
+if(!$dbi_exists) { 
+  skip DBI & DBD modules not installed.;  
+}

=== modified file 'mysql-test/suite/backup/t/backup_external_non_win.test'
--- a/mysql-test/suite/backup/t/backup_external_non_win.test	2009-03-25 22:17:35 +0000
+++ b/mysql-test/suite/backup/t/backup_external_non_win.test	2009-04-07 19:18:19 +0000
@@ -9,6 +9,7 @@
 --source include/have_innodb.inc
 --source include/not_windows.inc
 --source suite/backup/include/backup_ext.inc
+--source suite/backup/include/have_dbi.inc
 
 let $MYSQLD_BACKUPDIR = `select @@backupdir`;
 let $MYSQLD_DATADIR= `select @@datadir`;

Thread
bzr commit into mysql-6.0-backup-merge branch (hema:2793) Bug#43909Hema Sridharan7 Apr