1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fixed misc.c (was test case for CONC-114)

This commit is contained in:
Georg Richter
2014-12-09 20:11:54 +01:00
parent 69c400caaf
commit 6bfad6e025

View File

@@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "my_test.h" #include "my_test.h"
#include "ma_common.h" #include "ma_common.h"
#include <mysql/client_plugin.h>
/* /*
@@ -971,7 +971,19 @@ static int test_connect_attrs(MYSQL *my)
return OK; return OK;
} }
static int test_conc_114(MYSQL *mysql)
{
if (mysql_client_find_plugin(mysql, "foo", 0))
{
diag("Null pointer expected");
return FAIL;
}
diag("Error: %s", mysql_error(mysql));
return OK;
}
struct my_tests_st my_tests[] = { struct my_tests_st my_tests[] = {
{"test_conc_114", test_conc_114, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
{"test_connect_attrs", test_connect_attrs, TEST_CONNECTION_DEFAULT, 0, NULL, NULL}, {"test_connect_attrs", test_connect_attrs, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
{"test_conc49", test_conc49, TEST_CONNECTION_DEFAULT, 0, NULL, NULL}, {"test_conc49", test_conc49, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
{"test_bug28075", test_bug28075, TEST_CONNECTION_DEFAULT, 0, NULL, NULL}, {"test_bug28075", test_bug28075, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},