diff options
author | Konstantin Osipov <kostja@sun.com> | 2009-12-15 22:59:07 +0300 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2009-12-15 22:59:07 +0300 |
commit | 391b5246fef4110bc73227c67f77eec5611a612e (patch) | |
tree | 43a14c6ad76010ee31038173e53da44517c84dbe /tests | |
parent | 92b1c2f3caafe6529a08992d7f134476c7b9ff70 (diff) | |
parent | 27fca0ab1775a8c1dfe699c978b6448a7aa8f47b (diff) | |
download | mariadb-git-391b5246fef4110bc73227c67f77eec5611a612e.tar.gz |
Merge next-mr -> next-4284.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 4 | ||||
-rw-r--r-- | tests/thread_test.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 56e1d609754..866c63ae1d3 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -19379,7 +19379,9 @@ int main(int argc, char **argv) MY_INIT(argv[0]); - load_defaults("my", client_test_load_default_groups, &argc, &argv); + if (load_defaults("my", client_test_load_default_groups, &argc, &argv)) + exit(1); + defaults_argv= argv; get_options(&argc, &argv); diff --git a/tests/thread_test.c b/tests/thread_test.c index 760b72fc5d1..def133f4a3f 100644 --- a/tests/thread_test.c +++ b/tests/thread_test.c @@ -176,9 +176,8 @@ static void get_options(int argc, char **argv) { int ho_error; - load_defaults("my",load_default_groups,&argc,&argv); - - if ((ho_error=handle_options(&argc, &argv, my_long_options, get_one_option))) + if ((ho_error= load_defaults("my",load_default_groups,&argc,&argv)) || + (ho_error= handle_options(&argc, &argv, my_long_options, get_one_option))) exit(ho_error); free_defaults(argv); |