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
f80534a8
Commit
f80534a8
authored
Jul 28, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed log() to mtr_log(), because of a redefination
when compiled with metroworks compiler for Netware.
parent
5a6ab6ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
28 deletions
+28
-28
netware/mysql_test_run.c
netware/mysql_test_run.c
+28
-28
No files found.
netware/mysql_test_run.c
View file @
f80534a8
...
...
@@ -143,7 +143,7 @@ int read_option(char *, char *);
void
run_test
(
char
*
);
void
setup
(
char
*
);
void
vlog
(
char
*
,
va_list
);
void
log
(
char
*
,
...);
void
mtr_
log
(
char
*
,
...);
void
log_info
(
char
*
,
...);
void
log_error
(
char
*
,
...);
void
log_errno
(
char
*
,
...);
...
...
@@ -160,21 +160,21 @@ void report_stats()
{
if
(
total_fail
==
0
)
{
log
(
"
\n
All %d test(s) were successful.
\n
"
,
total_test
);
mtr_
log
(
"
\n
All %d test(s) were successful.
\n
"
,
total_test
);
}
else
{
double
percent
=
((
double
)
total_pass
/
total_test
)
*
100
;
log
(
"
\n
Failed %u/%u test(s), %.02f%% successful.
\n
"
,
mtr_
log
(
"
\n
Failed %u/%u test(s), %.02f%% successful.
\n
"
,
total_fail
,
total_test
,
percent
);
log
(
"
\n
The .out and .err files in %s may give you some
\n
"
,
result_dir
);
log
(
"hint of what when wrong.
\n
"
);
log
(
"
\n
If you want to report this error, please first read the documentation
\n
"
);
log
(
"at: http://www.mysql.com/doc/M/y/MySQL_test_suite.html
\n
"
);
mtr_
log
(
"
\n
The .out and .err files in %s may give you some
\n
"
,
result_dir
);
mtr_
log
(
"hint of what when wrong.
\n
"
);
mtr_
log
(
"
\n
If you want to report this error, please first read the documentation
\n
"
);
mtr_
log
(
"at: http://www.mysql.com/doc/M/y/MySQL_test_suite.html
\n
"
);
}
log
(
"
\n
%.02f total minutes elapsed in the test cases
\n\n
"
,
total_time
/
60
);
mtr_
log
(
"
\n
%.02f total minutes elapsed in the test cases
\n\n
"
,
total_time
/
60
);
}
/******************************************************************************
...
...
@@ -794,7 +794,7 @@ void run_test(char *test)
if
(
ignore
)
{
// show test
log
(
"%-46s "
,
test
);
mtr_
log
(
"%-46s "
,
test
);
// ignore
rstr
=
TEST_IGNORE
;
...
...
@@ -876,7 +876,7 @@ void run_test(char *test)
sleep
(
1
);
// show test
log
(
"%-46s "
,
test
);
mtr_
log
(
"%-46s "
,
test
);
// args
init_args
(
&
al
);
...
...
@@ -948,7 +948,7 @@ void run_test(char *test)
else
// early skips
{
// show test
log
(
"%-46s "
,
test
);
mtr_
log
(
"%-46s "
,
test
);
// skip
rstr
=
TEST_SKIP
;
...
...
@@ -956,7 +956,7 @@ void run_test(char *test)
}
// result
log
(
"%10.06f %-14s
\n
"
,
elapsed
,
rstr
);
mtr_
log
(
"%10.06f %-14s
\n
"
,
elapsed
,
rstr
);
}
/******************************************************************************
...
...
@@ -985,7 +985,7 @@ void vlog(char *format, va_list ap)
Log the message.
******************************************************************************/
void
log
(
char
*
format
,
...)
void
mtr_
log
(
char
*
format
,
...)
{
va_list
ap
;
...
...
@@ -1009,9 +1009,9 @@ void log_info(char *format, ...)
va_start
(
ap
,
format
);
log
(
"-- INFO : "
);
mtr_
log
(
"-- INFO : "
);
vlog
(
format
,
ap
);
log
(
"
\n
"
);
mtr_
log
(
"
\n
"
);
va_end
(
ap
);
}
...
...
@@ -1029,9 +1029,9 @@ void log_error(char *format, ...)
va_start
(
ap
,
format
);
log
(
"-- ERROR: "
);
mtr_
log
(
"-- ERROR: "
);
vlog
(
format
,
ap
);
log
(
"
\n
"
);
mtr_
log
(
"
\n
"
);
va_end
(
ap
);
}
...
...
@@ -1049,9 +1049,9 @@ void log_errno(char *format, ...)
va_start
(
ap
,
format
);
log
(
"-- ERROR: (%003u) "
,
errno
);
mtr_
log
(
"-- ERROR: (%003u) "
,
errno
);
vlog
(
format
,
ap
);
log
(
"
\n
"
);
mtr_
log
(
"
\n
"
);
va_end
(
ap
);
}
...
...
@@ -1184,18 +1184,18 @@ int main(int argc, char **argv)
is_ignore_list
=
1
;
}
// header
log
(
"MySQL Server %s, for %s (%s)
\n\n
"
,
VERSION
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
mtr_
log
(
"MySQL Server %s, for %s (%s)
\n\n
"
,
VERSION
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
log
(
"Initializing Tests...
\n
"
);
mtr_
log
(
"Initializing Tests...
\n
"
);
// install test databases
mysql_install_db
();
log
(
"Starting Tests...
\n
"
);
mtr_
log
(
"Starting Tests...
\n
"
);
log
(
"
\n
"
);
log
(
HEADER
);
log
(
DASH
);
mtr_
log
(
"
\n
"
);
mtr_
log
(
HEADER
);
mtr_
log
(
DASH
);
if
(
argc
>
1
+
is_ignore_list
)
{
...
...
@@ -1250,10 +1250,10 @@ int main(int argc, char **argv)
// stop server
mysql_stop
();
log
(
DASH
);
log
(
"
\n
"
);
mtr_
log
(
DASH
);
mtr_
log
(
"
\n
"
);
log
(
"Ending Tests...
\n
"
);
mtr_
log
(
"Ending Tests...
\n
"
);
// report stats
report_stats
();
...
...
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