Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2842c369
Commit
2842c369
authored
Sep 05, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-20425: Enable a test for debug builds
parent
67e2252b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
mysql-test/suite/innodb/r/trx_id_future.result
mysql-test/suite/innodb/r/trx_id_future.result
+3
-0
mysql-test/suite/innodb/t/trx_id_future.test
mysql-test/suite/innodb/t/trx_id_future.test
+6
-1
No files found.
mysql-test/suite/innodb/r/trx_id_future.result
View file @
2842c369
...
...
@@ -8,8 +8,11 @@ INSERT INTO t1 VALUES(1);
InnoDB 0 transactions not purged
NOT FOUND /\[Warning\] InnoDB: A transaction id in a record of table `test`\.`t1` is newer than the system-wide maximum/ in mysqld.1.err
call mtr.add_suppression("\\[Warning\\] InnoDB: A transaction id in a record of table `test`\\.`t1` is newer than the system-wide maximum");
SET @save_count = @@max_error_count;
SET max_error_count = 1;
SELECT * FROM t1;
a
Warnings:
Warning 1642 InnoDB: Transaction id in a record of table `test`.`t1` is newer than system-wide maximum.
SET max_error_count = @save_count;
DROP TABLE t1;
mysql-test/suite/innodb/t/trx_id_future.test
View file @
2842c369
...
...
@@ -3,7 +3,6 @@
--
echo
# IN THE FUTURE
--
echo
#
--
source
include
/
not_debug
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
not_embedded
.
inc
...
...
@@ -47,6 +46,8 @@ syswrite(FILE, $page, $ps)==$ps || die "Unable to write $file\n";
close
(
FILE
)
||
die
"Unable to close
$file
"
;
EOF
# Debug assertions would fail due to the injected corruption.
--
let
$restart_parameters
=
--
loose
-
skip
-
debug
-
assert
--
source
include
/
start_mysqld
.
inc
let
SEARCH_FILE
=
$MYSQLTEST_VARDIR
/
log
/
mysqld
.
1.
err
;
...
...
@@ -55,5 +56,9 @@ let SEARCH_PATTERN= \[Warning\] InnoDB: A transaction id in a record of table `t
call
mtr
.
add_suppression
(
"
\\
[Warning
\\
] InnoDB: A transaction id in a record of table `test`
\\
.`t1` is newer than the system-wide maximum"
);
# A debug assertion would cause a duplicated message to be output.
SET
@
save_count
=
@@
max_error_count
;
SET
max_error_count
=
1
;
SELECT
*
FROM
t1
;
SET
max_error_count
=
@
save_count
;
DROP
TABLE
t1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment