summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-11-11 14:59:13 +0200
committerunknown <monty@mysql.com>2004-11-11 14:59:13 +0200
commitac083bb68886305a2e28964c08b8217a60ac2432 (patch)
treec9e264f2752289b723039fe372a995b14f6e4326 /tests
parent784a9a9fdac59fa5683754c6e952e9d939183bee (diff)
downloadmariadb-git-ac083bb68886305a2e28964c08b8217a60ac2432.tar.gz
Write fatal errors even if silent is used in client_test
mysql-test/t/client_test.test: Fix crash when user has a conflicting defaults file tests/client_test.c: Write fatal errors even if silent is used
Diffstat (limited to 'tests')
-rw-r--r--tests/client_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/client_test.c b/tests/client_test.c
index 3c5598ee75a..45d66a92977 100644
--- a/tests/client_test.c
+++ b/tests/client_test.c
@@ -215,6 +215,7 @@ static void client_connect()
if (!(mysql= mysql_init(NULL)))
{
+ opt_silent= 0;
myerror("mysql_init() failed");
exit(1);
}
@@ -223,6 +224,7 @@ static void client_connect()
opt_password, opt_db ? opt_db:"test", opt_port,
opt_unix_socket, 0)))
{
+ opt_silent= 0;
myerror("connection failed");
mysql_close(mysql);
fprintf(stdout, "\n Check the connection options using --help or -?\n");