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
5349dffb
Commit
5349dffb
authored
Feb 15, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Plain Diff
Merge 192.168.0.10:mysql/mysql-4.1-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-4.1-maint
parents
68158c98
9f720bb7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
client/mysqltest.c
client/mysqltest.c
+28
-0
No files found.
client/mysqltest.c
View file @
5349dffb
...
@@ -415,6 +415,8 @@ void verbose_msg(const char *fmt, ...)
...
@@ -415,6 +415,8 @@ void verbose_msg(const char *fmt, ...)
ATTRIBUTE_FORMAT
(
printf
,
1
,
2
);
ATTRIBUTE_FORMAT
(
printf
,
1
,
2
);
void
warning_msg
(
const
char
*
fmt
,
...)
void
warning_msg
(
const
char
*
fmt
,
...)
ATTRIBUTE_FORMAT
(
printf
,
1
,
2
);
ATTRIBUTE_FORMAT
(
printf
,
1
,
2
);
void
log_msg
(
const
char
*
fmt
,
...)
ATTRIBUTE_FORMAT
(
printf
,
1
,
2
);
VAR
*
var_from_env
(
const
char
*
,
const
char
*
);
VAR
*
var_from_env
(
const
char
*
,
const
char
*
);
VAR
*
var_init
(
VAR
*
v
,
const
char
*
name
,
int
name_len
,
const
char
*
val
,
VAR
*
var_init
(
VAR
*
v
,
const
char
*
name
,
int
name_len
,
const
char
*
val
,
...
@@ -578,6 +580,7 @@ void do_eval(DYNAMIC_STRING *query_eval, const char *query,
...
@@ -578,6 +580,7 @@ void do_eval(DYNAMIC_STRING *query_eval, const char *query,
dynstr_append_mem
(
query_eval
,
p
,
1
);
dynstr_append_mem
(
query_eval
,
p
,
1
);
break
;
break
;
default:
default:
escaped
=
0
;
dynstr_append_mem
(
query_eval
,
p
,
1
);
dynstr_append_mem
(
query_eval
,
p
,
1
);
break
;
break
;
}
}
...
@@ -924,6 +927,25 @@ void warning_msg(const char *fmt, ...)
...
@@ -924,6 +927,25 @@ void warning_msg(const char *fmt, ...)
}
}
void
log_msg
(
const
char
*
fmt
,
...)
{
va_list
args
;
char
buff
[
512
];
size_t
len
;
DBUG_ENTER
(
"log_msg"
);
memset
(
buff
,
0
,
sizeof
(
buff
));
va_start
(
args
,
fmt
);
len
=
my_vsnprintf
(
buff
,
sizeof
(
buff
)
-
1
,
fmt
,
args
);
va_end
(
args
);
dynstr_append_mem
(
&
ds_res
,
buff
,
len
);
dynstr_append
(
&
ds_res
,
"
\n
"
);
DBUG_VOID_RETURN
;
}
/*
/*
Compare content of the string ds to content of file fname
Compare content of the string ds to content of file fname
*/
*/
...
@@ -1596,7 +1618,11 @@ void do_exec(struct st_command *command)
...
@@ -1596,7 +1618,11 @@ void do_exec(struct st_command *command)
my_bool
ok
=
0
;
my_bool
ok
=
0
;
if
(
command
->
abort_on_error
)
if
(
command
->
abort_on_error
)
{
log_msg
(
"exec of '%s failed, error: %d, status: %d, errno: %d"
,
ds_cmd
.
str
,
error
,
status
,
errno
);
die
(
"command
\"
%s
\"
failed"
,
command
->
first_argument
);
die
(
"command
\"
%s
\"
failed"
,
command
->
first_argument
);
}
DBUG_PRINT
(
"info"
,
DBUG_PRINT
(
"info"
,
(
"error: %d, status: %d"
,
error
,
status
));
(
"error: %d, status: %d"
,
error
,
status
));
...
@@ -1620,6 +1646,8 @@ void do_exec(struct st_command *command)
...
@@ -1620,6 +1646,8 @@ void do_exec(struct st_command *command)
command
->
expected_errors
.
err
[
0
].
code
.
errnum
!=
0
)
command
->
expected_errors
.
err
[
0
].
code
.
errnum
!=
0
)
{
{
/* Error code we wanted was != 0, i.e. not an expected success */
/* Error code we wanted was != 0, i.e. not an expected success */
log_msg
(
"exec of '%s failed, error: %d, errno: %d"
,
ds_cmd
.
str
,
error
,
errno
);
die
(
"command
\"
%s
\"
succeeded - should have failed with errno %d..."
,
die
(
"command
\"
%s
\"
succeeded - should have failed with errno %d..."
,
command
->
first_argument
,
command
->
expected_errors
.
err
[
0
].
code
.
errnum
);
command
->
first_argument
,
command
->
expected_errors
.
err
[
0
].
code
.
errnum
);
}
}
...
...
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