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
f072749e
Commit
f072749e
authored
Dec 09, 2010
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
upmerge 58511,58522,58608,58092
parents
899a49bc
bff782d0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
11 deletions
+30
-11
client/mysqltest.cc
client/mysqltest.cc
+15
-5
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+13
-5
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+1
-1
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+1
-0
No files found.
client/mysqltest.cc
View file @
f072749e
...
...
@@ -1169,8 +1169,8 @@ void handle_command_error(struct st_command *command, uint error)
int
i
;
if
(
command
->
abort_on_error
)
die
(
"command
\"
%.*s
\"
failed with error %d"
,
command
->
first_word_len
,
command
->
query
,
error
);
die
(
"command
\"
%.*s
\"
failed with error %d
. my_errno=%d
"
,
command
->
first_word_len
,
command
->
query
,
error
,
my_errno
);
i
=
match_expected_error
(
command
,
error
,
NULL
);
...
...
@@ -1181,8 +1181,8 @@ void handle_command_error(struct st_command *command, uint error)
DBUG_VOID_RETURN
;
}
if
(
command
->
expected_errors
.
count
>
0
)
die
(
"command
\"
%.*s
\"
failed with wrong error: %d"
,
command
->
first_word_len
,
command
->
query
,
error
);
die
(
"command
\"
%.*s
\"
failed with wrong error: %d
. my_errno=%d
"
,
command
->
first_word_len
,
command
->
query
,
error
,
my_errno
);
}
else
if
(
command
->
expected_errors
.
err
[
0
].
type
==
ERR_ERRNO
&&
command
->
expected_errors
.
err
[
0
].
code
.
errnum
!=
0
)
...
...
@@ -2077,7 +2077,7 @@ VAR *var_init(VAR *v, const char *name, int name_len, const char *val,
val_len
=
0
;
val_alloc_len
=
val_len
+
16
;
/* room to grow */
if
(
!
(
tmp_var
=
v
)
&&
!
(
tmp_var
=
(
VAR
*
)
my_malloc
(
sizeof
(
*
tmp_var
)
+
name_len
+
1
,
MYF
(
MY_WME
))))
+
name_len
+
2
,
MYF
(
MY_WME
))))
die
(
"Out of memory"
);
if
(
name
!=
NULL
)
...
...
@@ -7934,6 +7934,16 @@ void init_re(void)
int
match_re
(
my_regex_t
*
re
,
char
*
str
)
{
while
(
my_isspace
(
charset_info
,
*
str
))
str
++
;
if
(
str
[
0
]
==
'/'
&&
str
[
1
]
==
'*'
)
{
char
*
comm_end
=
strstr
(
str
,
"*/"
);
if
(
!
comm_end
)
die
(
"Statement is unterminated comment"
);
str
=
comm_end
+
2
;
}
int
err
=
my_regexec
(
re
,
str
,
(
size_t
)
0
,
NULL
,
0
);
if
(
err
==
0
)
...
...
mysql-test/mysql-test-run.pl
View file @
f072749e
...
...
@@ -910,7 +910,7 @@ sub command_line_setup {
my
$opt_list_options
;
# Read the command line options
# Note: Keep list
, and the order,
in sync with usage at end of this file
# Note: Keep list in sync with usage at end of this file
Getopt::Long::
Configure
("
pass_through
");
my
%
options
=
(
# Control what engine/variation to run
...
...
@@ -946,6 +946,7 @@ sub command_line_setup {
'
combination=s
'
=>
\
@opt_combinations
,
'
skip-combinations
'
=>
\&
collect_option
,
'
experimental=s
'
=>
\
@opt_experimentals
,
# skip-im is deprecated and silently ignored
'
skip-im
'
=>
\&
ignore_option
,
# Specify ports
...
...
@@ -1042,7 +1043,8 @@ sub command_line_setup {
'
report-times
'
=>
\
$opt_report_times
,
'
help|h
'
=>
\
$opt_usage
,
'
list-options
'
=>
\
$opt_list_options
,
# list-options is internal, not listed in help
'
list-options
'
=>
\
$opt_list_options
,
'
skip-test-list=s
'
=>
\
@opt_skip_test_list
);
...
...
@@ -5632,7 +5634,7 @@ Options to control what engine/variation to run
defaults-file=<config template> Use fixed config template for all
tests
defaults
_extra_
file=<config template> Extra config template to add to
defaults
-extra-
file=<config template> Extra config template to add to
all generated configs
combination=<opt> Use at least twice to run tests with specified
options to mysqld
...
...
@@ -5730,7 +5732,7 @@ Options for debugging the product
test(s)
manual-ddd Let user manually start mysqld in ddd, before running
test(s)
strace-client
=[
path] Create strace output for mysqltest client, optionally
strace-client
[=
path] Create strace output for mysqltest client, optionally
specifying name and path to the trace program to use.
Example: $0 --strace-client=ktrace
max-save-core Limit the number of core files saved (to avoid filling
...
...
@@ -5763,7 +5765,7 @@ Options for valgrind
Misc options
user=USER User for connecting to mysqld(default: $opt_user)
comment=STR Write STR to the output
notimer Don't show test case execution time
timer Show test case execution time.
verbose More verbose output(use multiple times for even more)
verbose-restart Write when and why servers are restarted
start Only initialize and start the servers, using the
...
...
@@ -5803,6 +5805,7 @@ Misc options
actions. Disable facility with NUM=0.
gcov Collect coverage information after the test.
The result is a gcov file per source and header file.
gprof Collect profiling information using gprof.
experimental=<file> Refer to list of tests considered experimental;
failures will be marked exp-fail instead of fail.
report-features First run a "test" that reports mysql features
...
...
@@ -5815,6 +5818,11 @@ Misc options
engine to InnoDB.
report-times Report how much time has been spent on different
phases of test execution.
Some options that control enabling a feature for normal test runs,
can be turned off by prepending 'no' to the option, e.g. --notimer.
This applies to reorder, timer, check-testcases and warnings.
HERE
exit
(
1
);
...
...
mysql-test/r/mysqltest.result
View file @
f072749e
...
...
@@ -625,7 +625,7 @@ if things work as expected
Some data
for cat_file command
of mysqltest
mysqltest: At line 1: command "cat_file" failed with error 1
mysqltest: At line 1: command "cat_file" failed with error 1
. (my_errno)
mysqltest: At line 1: Missing required argument 'filename' to command 'file_exists'
mysqltest: At line 1: Missing required argument 'from_file' to command 'copy_file'
mysqltest: At line 1: Missing required argument 'to_file' to command 'copy_file'
...
...
mysql-test/t/mysqltest.test
View file @
f072749e
...
...
@@ -2130,6 +2130,7 @@ EOF
cat_file
$MYSQLTEST_VARDIR
/
tmp
/
test_file1
.
tmp
;
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
test_file1
.
tmp
;
--
replace_regex
/
my_errno
=
[
0
-
9
]
*/
(
my_errno
)
/
--
error
1
--
exec
echo
"cat_file non_existing_file;"
|
$MYSQL_TEST
2
>&
1
...
...
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