summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-12-13 18:47:34 +0100
committerunknown <msvensson@neptunus.(none)>2005-12-13 18:47:34 +0100
commit58de4d7e28c782341bc2160bd93fcaeb8f9dfd01 (patch)
treeb1d2f09fac0b04af3b309761ced4cca08a5a3c1c /client
parent152b89c96e4008be0afc5ebe40652aa2de8ed865 (diff)
downloadmariadb-git-58de4d7e28c782341bc2160bd93fcaeb8f9dfd01.tar.gz
Remove confusing printouts from expected to fail "system" commands
client/mysqltest.c: Add missing DBUG_VOID_RETURN Log failure to run "system" into result log Add DBUG_PRINT for the sleep value used in do_sleep mysql-test/r/mysqltest.result: Update test results mysql-test/t/mysqltest.test: Mask outpu from failed system command
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 8938df1944f..7ba8dc31405 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -1134,6 +1134,7 @@ static void do_exec(struct st_query *query)
}
free_replace();
+ DBUG_VOID_RETURN;
}
@@ -1300,10 +1301,13 @@ int do_modify_var(struct st_query *query, const char *name,
int do_system(struct st_query *q)
{
+ DYNAMIC_STRING *ds;
char *p=q->first_argument;
VAR v;
var_init(&v, 0, 0, 0, 0);
eval_expr(&v, p, 0); /* NULL terminated */
+ ds= &ds_res;
+
if (v.str_val_len)
{
char expr_buf[1024];
@@ -1316,8 +1320,11 @@ int do_system(struct st_query *q)
{
if (q->abort_on_error)
die("system command '%s' failed", expr_buf);
- /* If ! abort_on_error, display message and continue */
- verbose_msg("system command '%s' failed", expr_buf);
+
+ /* If ! abort_on_error, log message and continue */
+ dynstr_append(ds, "system command '");
+ replace_dynstr_append(ds, expr_buf);
+ dynstr_append(ds, "' failed\n");
}
}
else
@@ -1582,6 +1589,7 @@ int do_sleep(struct st_query *query, my_bool real_sleep)
if (opt_sleep && !real_sleep)
sleep_val= opt_sleep;
+ DBUG_PRINT("info", ("sleep_val: %f", sleep_val));
my_sleep((ulong) (sleep_val * 1000000L));
query->last_argument= sleep_end;
return 0;