Skip to content

Commit 40f4525

Browse files
committed
MDEV-14585: Adjust the innodb.innodb-alter-tempfile test case
1 parent 69e88de commit 40f4525

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

mysql-test/suite/innodb/t/innodb-alter-tempfile.test

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,12 @@ SET debug_dbug='+d,innodb_alter_commit_crash_before_commit';
3232
--error 2013
3333
ALTER TABLE t1 ADD PRIMARY KEY (f2, f1);
3434

35-
let TABLENAME_INC= $MYSQLTEST_VARDIR/tmp/tablename.inc;
36-
perl;
37-
die unless open OUT, ">$ENV{TABLENAME_INC}";
38-
chdir "$ENV{'datadir'}/test";
39-
my @frm_file = map { substr($_, 0, -4) } glob "#sql-*.frm";
40-
print OUT 'let $temp_table_name=', $frm_file[0], ';';
41-
close OUT or die;
42-
EOF
43-
source $TABLENAME_INC;
44-
remove_file $TABLENAME_INC;
35+
remove_files_wildcard $datadir/test #sql-*.frm;
4536

4637
--source include/start_mysqld.inc
4738

4839
show create table t1;
4940
--echo # Consecutive Alter table does not create same temporary file name
5041
ALTER TABLE t1 ADD PRIMARY KEY (f2, f1);
51-
--disable_query_log
52-
eval DROP TABLE `#mysql50#$temp_table_name`;
53-
--enable_query_log
5442
show create table t1;
5543
drop table t1;

0 commit comments

Comments
 (0)