diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-08-21 23:20:35 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-09-04 10:33:53 +0200 |
commit | 55d7871f987d759b888d4bffc3a729e67d1788da (patch) | |
tree | a33fbc6fa771ca5a6611145f56de8a747eeccb02 /mysql-test/t/mysqldump-max.test | |
parent | 8aa473c4b9957c7c365cf50ade520ff397d6afb1 (diff) | |
download | mariadb-git-55d7871f987d759b888d4bffc3a729e67d1788da.tar.gz |
test cleanup: remove Format_description_log_event size dependency
1. use include/show_binlog_events.inc instead of SHOW BINLOG EVENTS
2. use include/show_relaylog_eventc.inc too
3. in all other places where a number might appear in the result
file, include binlog_start_pos.inc, calculate the position
like pos=`select $binlog_start_pos + 100`; and use
replace_result $pos <pos>
Diffstat (limited to 'mysql-test/t/mysqldump-max.test')
-rw-r--r-- | mysql-test/t/mysqldump-max.test | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mysql-test/t/mysqldump-max.test b/mysql-test/t/mysqldump-max.test index d0a4870ba31..3f73f046959 100644 --- a/mysql-test/t/mysqldump-max.test +++ b/mysql-test/t/mysqldump-max.test @@ -1193,12 +1193,16 @@ DROP TABLE t1; DROP TABLE t2; --exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/mwl136.sql ---replace_regex /\/\* xid=.* \*\//\/* XID *\// /Server ver: .*, Binlog ver: .*/Server ver: #, Binlog ver: #/ /table_id: [0-9]+/table_id: #/ -SHOW BINLOG EVENTS LIMIT 7,3; +let $binlog_limit= 7, 3; +source include/show_binlog_events.inc; +source include/binlog_start_pos.inc; +let _BINLOG_START_POS= $binlog_start_pos; --perl my $f= "$ENV{MYSQLTEST_VARDIR}/tmp/mwl136.sql"; +my $pos=$ENV{_BINLOG_START_POS} + 691; open F, '<', $f or die "Failed to open $f: $!\n"; while (<F>) { + s/$pos/<pos>/; print if /CHANGE MASTER TO/; } EOF |