diff options
author | unknown <kaa@polly.(none)> | 2007-11-22 14:56:01 +0300 |
---|---|---|
committer | unknown <kaa@polly.(none)> | 2007-11-22 14:56:01 +0300 |
commit | bac4f3e6ee20eb9f8b485f0182d80ef11217a5de (patch) | |
tree | 33d8e83bf5ba7eb5a95926cef414042c8ed33b0e /tests | |
parent | 16f15dba44132121f025e7308e59247c2a0051c9 (diff) | |
parent | 0515b1402032b82d99d7bf1a0a90241e69d645a5 (diff) | |
download | mariadb-git-bac4f3e6ee20eb9f8b485f0182d80ef11217a5de.tar.gz |
Merge polly.(none):/home/kaa/src/opt/bug32221/my51-bug31445
into polly.(none):/home/kaa/src/opt/mysql-5.1-opt
tests/mysql_client_test.c:
Auto merged
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bug25714.c | 6 | ||||
-rw-r--r-- | tests/mysql_client_test.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/bug25714.c b/tests/bug25714.c index 4782178e2f2..03d28f59aa4 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( diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 8bfe315fb59..b71e8d20a91 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -129,7 +129,7 @@ static void die(const char *file, int line, const char *expr) fflush(stdout); fprintf(stderr, "%s:%d: check failed: '%s'\n", file, line, expr); fflush(stderr); - abort(); + exit(1); } |