@@ -34,7 +34,7 @@ let SEARCH_PATTERN=InnoDB: User table exists in the system tablespace;
3434DROP TABLE t1;
3535
3636--source include/wait_all_purged.inc
37- select name, file_size from information_schema.innodb_sys_tablespaces where space = 0;
37+ let $fsize=` select file_size from information_schema.innodb_sys_tablespaces where space = 0` ;
3838
3939let $restart_parameters=--debug_dbug=+d,fail_after_level_defragment;
4040--source include/restart_mysqld.inc
@@ -43,7 +43,8 @@ let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err;
4343let SEARCH_PATTERN=InnoDB: Defragmentation of CLUST_IND in SYS_COLUMNS failed.;
4444--source include/search_pattern_in_file.inc
4545
46- select name, file_size from information_schema.innodb_sys_tablespaces where space = 0;
46+ evalp select name, file_size<$fsize shrunk
47+ from information_schema.innodb_sys_tablespaces where space=0;
4748
4849let $restart_parameters=--debug_dbug=d,allocation_prepare_fail;
4950--source include/restart_mysqld.inc
@@ -52,7 +53,8 @@ let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err;
5253let SEARCH_PATTERN=InnoDB: Defragmentation of CLUST_IND in SYS_INDEXES failed.;
5354--source include/search_pattern_in_file.inc
5455
55- select name, file_size from information_schema.innodb_sys_tablespaces where space = 0;
56+ evalp select name, file_size<$fsize shrunk
57+ from information_schema.innodb_sys_tablespaces where space=0;
5658
5759let $restart_parameters=--debug_dbug=d,relation_page_prepare_fail;
5860--source include/restart_mysqld.inc
@@ -61,7 +63,8 @@ let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err;
6163let SEARCH_PATTERN=InnoDB: Defragmentation of CLUST_IND in SYS_INDEXES failed.;
6264--source include/search_pattern_in_file.inc
6365
64- select name, file_size from information_schema.innodb_sys_tablespaces where space = 0;
66+ evalp select name, file_size<$fsize shrunk
67+ from information_schema.innodb_sys_tablespaces where space=0;
6568
6669let $restart_parameters=--debug_dbug=d,remover_prepare_fail;
6770--source include/restart_mysqld.inc
@@ -70,7 +73,8 @@ let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err;
7073let SEARCH_PATTERN=InnoDB: Defragmentation of CLUST_IND in SYS_INDEXES failed.;
7174--source include/search_pattern_in_file.inc
7275
73- select name, file_size from information_schema.innodb_sys_tablespaces where space = 0;
76+ evalp select name, file_size<$fsize shrunk
77+ from information_schema.innodb_sys_tablespaces where space=0;
7478
7579let $restart_parameters=;
7680--source include/restart_mysqld.inc
@@ -82,7 +86,8 @@ let SEARCH_PATTERN= InnoDB: Moving the data from extents 4096 through 8960;
8286let SEARCH_PATTERN=InnoDB: Defragmentation of system tablespace is successful;
8387--source include/search_pattern_in_file.inc
8488
85- select name, file_size from information_schema.innodb_sys_tablespaces where space = 0;
89+ evalp select name, file_size<$fsize shrunk
90+ from information_schema.innodb_sys_tablespaces where space=0;
8691
8792--source include/shutdown_mysqld.inc
8893--move_file $MYSQLD_DATADIR/ibdata1_copy $MYSQLD_DATADIR/ibdata1
0 commit comments