diff options
author | kaa@polly.(none) <> | 2007-11-19 18:59:25 +0300 |
---|---|---|
committer | kaa@polly.(none) <> | 2007-11-19 18:59:25 +0300 |
commit | 82c4059fc917a9f205a63f2c38453ebd1de4e012 (patch) | |
tree | a0b6b1d076a2e96fbbf40c1218b88f581469ba42 /tests/bug25714.c | |
parent | e703c6a78c97eddf6a8fbf20bebe89d1ae504f93 (diff) | |
download | mariadb-git-82c4059fc917a9f205a63f2c38453ebd1de4e012.tar.gz |
Fix for bug #32221: bug25714, mytest, mysql_client_test complaints and
crashes.
MySQL distributions contain a number of programs that are used only by
the MySQL test suite internally, i.e. they are not indended to be
invoked directly by a user. As a result, such programs are not
documented, do not have any built-in help or proper error reporting,
which may confuse users.
This patch fixes the problem with the following changes:
- mytest, libmysqltest and all references to them were removed from the
distribution since they are not used anymore
- bug25714 now displays an error message when run with incorrect
arguments or with the --help option
- mysql_client_test now does not call abort() in case of errors,
instead it does a clean exit() with a proper error status.
Diffstat (limited to 'tests/bug25714.c')
-rw-r--r-- | tests/bug25714.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/bug25714.c b/tests/bug25714.c index e9b2be44209..88485aa1962 100644 --- a/tests/bug25714.c +++ b/tests/bug25714.c @@ -29,8 +29,12 @@ int main (int argc, char **argv) MY_INIT(argv[0]); - if (argc != 2) + if (argc != 2 || !strcmp(argv[1], "--help")) + { + fprintf(stderr, "This program is a part of the MySQL test suite. " + "It is not intended to be executed directly by a user.\n"); return -1; + } mysql_init(&conn); if (!mysql_real_connect( |