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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f76b8497
Commit
f76b8497
authored
Jul 28, 2004
by
jani@rhols221.adsl.netsonic.fi
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
15908c8b
Changes
1
Show 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 @
f76b8497
...
@@ -143,7 +143,7 @@ int read_option(char *, char *);
...
@@ -143,7 +143,7 @@ int read_option(char *, char *);
void
run_test
(
char
*
);
void
run_test
(
char
*
);
void
setup
(
char
*
);
void
setup
(
char
*
);
void
vlog
(
char
*
,
va_list
);
void
vlog
(
char
*
,
va_list
);
void
log
(
char
*
,
...);
void
mtr_
log
(
char
*
,
...);
void
log_info
(
char
*
,
...);
void
log_info
(
char
*
,
...);
void
log_error
(
char
*
,
...);
void
log_error
(
char
*
,
...);
void
log_errno
(
char
*
,
...);
void
log_errno
(
char
*
,
...);
...
@@ -160,21 +160,21 @@ void report_stats()
...
@@ -160,21 +160,21 @@ void report_stats()
{
{
if
(
total_fail
==
0
)
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
else
{
{
double
percent
=
((
double
)
total_pass
/
total_test
)
*
100
;
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
);
total_fail
,
total_test
,
percent
);
log
(
"
\n
The .out and .err files in %s may give you some
\n
"
,
result_dir
);
mtr_
log
(
"
\n
The .out and .err files in %s may give you some
\n
"
,
result_dir
);
log
(
"hint of what when wrong.
\n
"
);
mtr_
log
(
"hint of what when wrong.
\n
"
);
log
(
"
\n
If you want to report this error, please first read the documentation
\n
"
);
mtr_
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
(
"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)
...
@@ -794,7 +794,7 @@ void run_test(char *test)
if
(
ignore
)
if
(
ignore
)
{
{
// show test
// show test
log
(
"%-46s "
,
test
);
mtr_
log
(
"%-46s "
,
test
);
// ignore
// ignore
rstr
=
TEST_IGNORE
;
rstr
=
TEST_IGNORE
;
...
@@ -876,7 +876,7 @@ void run_test(char *test)
...
@@ -876,7 +876,7 @@ void run_test(char *test)
sleep
(
1
);
sleep
(
1
);
// show test
// show test
log
(
"%-46s "
,
test
);
mtr_
log
(
"%-46s "
,
test
);
// args
// args
init_args
(
&
al
);
init_args
(
&
al
);
...
@@ -948,7 +948,7 @@ void run_test(char *test)
...
@@ -948,7 +948,7 @@ void run_test(char *test)
else
// early skips
else
// early skips
{
{
// show test
// show test
log
(
"%-46s "
,
test
);
mtr_
log
(
"%-46s "
,
test
);
// skip
// skip
rstr
=
TEST_SKIP
;
rstr
=
TEST_SKIP
;
...
@@ -956,7 +956,7 @@ void run_test(char *test)
...
@@ -956,7 +956,7 @@ void run_test(char *test)
}
}
// result
// 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)
...
@@ -985,7 +985,7 @@ void vlog(char *format, va_list ap)
Log the message.
Log the message.
******************************************************************************/
******************************************************************************/
void
log
(
char
*
format
,
...)
void
mtr_
log
(
char
*
format
,
...)
{
{
va_list
ap
;
va_list
ap
;
...
@@ -1009,9 +1009,9 @@ void log_info(char *format, ...)
...
@@ -1009,9 +1009,9 @@ void log_info(char *format, ...)
va_start
(
ap
,
format
);
va_start
(
ap
,
format
);
log
(
"-- INFO : "
);
mtr_
log
(
"-- INFO : "
);
vlog
(
format
,
ap
);
vlog
(
format
,
ap
);
log
(
"
\n
"
);
mtr_
log
(
"
\n
"
);
va_end
(
ap
);
va_end
(
ap
);
}
}
...
@@ -1029,9 +1029,9 @@ void log_error(char *format, ...)
...
@@ -1029,9 +1029,9 @@ void log_error(char *format, ...)
va_start
(
ap
,
format
);
va_start
(
ap
,
format
);
log
(
"-- ERROR: "
);
mtr_
log
(
"-- ERROR: "
);
vlog
(
format
,
ap
);
vlog
(
format
,
ap
);
log
(
"
\n
"
);
mtr_
log
(
"
\n
"
);
va_end
(
ap
);
va_end
(
ap
);
}
}
...
@@ -1049,9 +1049,9 @@ void log_errno(char *format, ...)
...
@@ -1049,9 +1049,9 @@ void log_errno(char *format, ...)
va_start
(
ap
,
format
);
va_start
(
ap
,
format
);
log
(
"-- ERROR: (%003u) "
,
errno
);
mtr_
log
(
"-- ERROR: (%003u) "
,
errno
);
vlog
(
format
,
ap
);
vlog
(
format
,
ap
);
log
(
"
\n
"
);
mtr_
log
(
"
\n
"
);
va_end
(
ap
);
va_end
(
ap
);
}
}
...
@@ -1184,18 +1184,18 @@ int main(int argc, char **argv)
...
@@ -1184,18 +1184,18 @@ int main(int argc, char **argv)
is_ignore_list
=
1
;
is_ignore_list
=
1
;
}
}
// header
// 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
// install test databases
mysql_install_db
();
mysql_install_db
();
log
(
"Starting Tests...
\n
"
);
mtr_
log
(
"Starting Tests...
\n
"
);
log
(
"
\n
"
);
mtr_
log
(
"
\n
"
);
log
(
HEADER
);
mtr_
log
(
HEADER
);
log
(
DASH
);
mtr_
log
(
DASH
);
if
(
argc
>
1
+
is_ignore_list
)
if
(
argc
>
1
+
is_ignore_list
)
{
{
...
@@ -1250,10 +1250,10 @@ int main(int argc, char **argv)
...
@@ -1250,10 +1250,10 @@ int main(int argc, char **argv)
// stop server
// stop server
mysql_stop
();
mysql_stop
();
log
(
DASH
);
mtr_
log
(
DASH
);
log
(
"
\n
"
);
mtr_
log
(
"
\n
"
);
log
(
"Ending Tests...
\n
"
);
mtr_
log
(
"Ending Tests...
\n
"
);
// report stats
// report stats
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