Below is the list of changes that have just been committed into a local
4.1 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-02-13 18:59:46+01:00, msvensson@stripped +1 -0
Write some debug info to result log file before dying in 'do_exec'
client/mysqltest.c@stripped, 2007-02-13 18:59:45+01:00, msvensson@stripped +27 -0
Write some debug info to result log file before dying in 'do_exec'
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: msvensson
# Host: pilot.mysql.com
# Root: /home/msvensson/mysql/mysql-4.1-maint
--- 1.233/client/mysqltest.c 2007-02-13 16:59:57 +01:00
+++ 1.234/client/mysqltest.c 2007-02-13 18:59:45 +01:00
@@ -415,6 +415,8 @@
ATTRIBUTE_FORMAT(printf, 1, 2);
void warning_msg(const char *fmt, ...)
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_init(VAR* v, const char *name, int name_len, const char *val,
@@ -925,6 +927,25 @@
}
+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= 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
*/
@@ -1597,7 +1618,11 @@
my_bool ok= 0;
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);
+ }
DBUG_PRINT("info",
("error: %d, status: %d", error, status));
@@ -1621,6 +1646,8 @@
command->expected_errors.err[0].code.errnum != 0)
{
/* 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...",
command->first_argument, command->expected_errors.err[0].code.errnum);
}
| Thread |
|---|
| • bk commit into 4.1 tree (msvensson:1.2607) | msvensson | 13 Feb |