diff options
author | Alexey Botchkov <holyfoot@mysql.com> | 2009-11-17 15:27:40 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@mysql.com> | 2009-11-17 15:27:40 +0400 |
commit | 6c832ee4bf4b0bc0bca769dcff10a994e202263b (patch) | |
tree | 6b7a74d4ca5d8a84274ea7033d217f86ce4737a8 /tests | |
parent | 5b8a24cf04b4aa76b301036f58fb624a4ff361e0 (diff) | |
parent | 760d42e7d00a387dec00590cef1775e9e3132438 (diff) | |
download | mariadb-git-6c832ee4bf4b0bc0bca769dcff10a994e202263b.tar.gz |
merging.
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 cfe401c75f3..e2721415092 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -19280,7 +19280,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 8e1c58ebbec..5b76eeff2f7 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); |