Skip to content

Commit 6bfad6e

Browse files
committed
Fixed misc.c (was test case for CONC-114)
1 parent 69c400c commit 6bfad6e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

unittest/libmariadb/misc.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2424
#include "my_test.h"
2525
#include "ma_common.h"
2626

27-
27+
#include <mysql/client_plugin.h>
2828

2929

3030
/*
@@ -971,7 +971,19 @@ static int test_connect_attrs(MYSQL *my)
971971
return OK;
972972
}
973973

974+
static int test_conc_114(MYSQL *mysql)
975+
{
976+
if (mysql_client_find_plugin(mysql, "foo", 0))
977+
{
978+
diag("Null pointer expected");
979+
return FAIL;
980+
}
981+
diag("Error: %s", mysql_error(mysql));
982+
return OK;
983+
}
984+
974985
struct my_tests_st my_tests[] = {
986+
{"test_conc_114", test_conc_114, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
975987
{"test_connect_attrs", test_connect_attrs, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
976988
{"test_conc49", test_conc49, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
977989
{"test_bug28075", test_bug28075, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},

0 commit comments

Comments
 (0)