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
20d88eb7
Commit
20d88eb7
authored
Nov 12, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-4.1
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1
parents
870b048b
d605d887
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
tests/client_test.c
tests/client_test.c
+11
-13
No files found.
tests/client_test.c
View file @
20d88eb7
...
@@ -11494,11 +11494,11 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -11494,11 +11494,11 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
return
0
;
return
0
;
}
}
static
void
get_options
(
int
argc
,
char
**
argv
)
static
void
get_options
(
int
*
argc
,
char
*
**
argv
)
{
{
int
ho_error
;
int
ho_error
;
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
client_test_long_options
,
if
((
ho_error
=
handle_options
(
argc
,
argv
,
client_test_long_options
,
get_one_option
)))
get_one_option
)))
exit
(
ho_error
);
exit
(
ho_error
);
...
@@ -11541,7 +11541,7 @@ int main(int argc, char **argv)
...
@@ -11541,7 +11541,7 @@ int main(int argc, char **argv)
load_defaults
(
"my"
,
client_test_load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
client_test_load_default_groups
,
&
argc
,
&
argv
);
defaults_argv
=
argv
;
defaults_argv
=
argv
;
get_options
(
argc
,
argv
);
get_options
(
&
argc
,
&
argv
);
client_connect
();
/* connect to server */
client_connect
();
/* connect to server */
...
@@ -11552,30 +11552,28 @@ int main(int argc, char **argv)
...
@@ -11552,30 +11552,28 @@ int main(int argc, char **argv)
test_count
=
1
;
test_count
=
1
;
start_time
=
time
((
time_t
*
)
0
);
start_time
=
time
((
time_t
*
)
0
);
int
i
,
name_ok
;
if
(
!
argc
)
if
(
!
argv
[
1
])
{
{
for
(
fptr
=
my_tests
;
fptr
->
name
;
fptr
++
)
for
(
fptr
=
my_tests
;
fptr
->
name
;
fptr
++
)
(
*
fptr
->
function
)();
(
*
fptr
->
function
)();
}
}
else
else
{
{
for
(
i
=
1
;
argv
[
i
];
i
++
)
for
(
;
*
argv
;
argv
++
)
{
{
name_ok
=
0
;
for
(
fptr
=
my_tests
;
fptr
->
name
;
fptr
++
)
for
(
fptr
=
my_tests
;
fptr
->
name
;
fptr
++
)
{
{
if
(
!
strcmp
(
fptr
->
name
,
argv
[
i
]
))
if
(
!
strcmp
(
fptr
->
name
,
*
argv
))
{
{
name_ok
=
1
;
(
*
fptr
->
function
)();
(
*
fptr
->
function
)();
break
;
}
}
}
}
if
(
!
name_ok
)
if
(
!
fptr
->
name
)
{
{
printf
(
"
\n\n
Given test not found: '%s'
\n
"
,
argv
[
i
]
);
fprintf
(
stderr
,
"
\n\n
Given test not found: '%s'
\n
"
,
*
argv
);
printf
(
"See legal test names with %s -T
\n\n
Aborting!
\n
"
,
fprintf
(
stderr
,
"See legal test names with %s -T
\n\n
Aborting!
\n
"
,
my_progname
);
my_progname
);
client_disconnect
();
client_disconnect
();
free_defaults
(
defaults_argv
);
free_defaults
(
defaults_argv
);
exit
(
1
);
exit
(
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