summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <kaa@polly.(none)>2007-11-22 14:53:41 +0300
committerunknown <kaa@polly.(none)>2007-11-22 14:53:41 +0300
commit94fc9a5574541d48d0efbf5fb10501c721e287d1 (patch)
tree001284da470f539d1f693fba39a7c140389ba211 /tests
parent3fdc12ca42a2a84c1ccde582d64372ca6b2fa76d (diff)
parent53dfb5a9aaee0255fcaeb1fc8aed017c9f8bcd73 (diff)
downloadmariadb-git-94fc9a5574541d48d0efbf5fb10501c721e287d1.tar.gz
Merge polly.(none):/home/kaa/src/opt/bug32221/my50-bug31445
into polly.(none):/home/kaa/src/opt/mysql-5.0-opt tests/mysql_client_test.c: Auto merged
Diffstat (limited to 'tests')
-rw-r--r--tests/bug25714.c6
-rw-r--r--tests/mysql_client_test.c2
2 files changed, 6 insertions, 2 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(
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 65e18da97f1..29935a4924d 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -123,7 +123,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);
}