Skip to content

Commit 0a609a9

Browse files
author
João Meira
committed
updated tests
1 parent 78b72c5 commit 0a609a9

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

tests/test-cxx-build.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ class test_plugin
7171
struct mptcpd_pm *const pm = NULL;
7272

7373
bool const loaded =
74-
mptcpd_plugin_load(dir, default_plugin, NULL, this->pm);
74+
mptcpd_plugin_load(dir,
75+
default_plugin,
76+
dir,
77+
NULL,
78+
this->pm);
7579
assert(loaded);
7680

7781
call_plugin_ops(&test_count_4,

tests/test-plugin.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static bool run_plugin_load(mode_t mode, struct l_queue const *queue)
4343
assert(mode_ok == 0);
4444

4545
bool const loaded =
46-
mptcpd_plugin_load(dir, default_plugin, queue, pm);
46+
mptcpd_plugin_load(dir, default_plugin, dir, queue, pm);
4747

4848
if (loaded) {
4949
call_plugin_ops(&test_count_4,
@@ -118,7 +118,7 @@ static void test_no_plugins(void const *test_data)
118118
assert(dir != NULL);
119119

120120
struct mptcpd_pm *const pm = NULL;
121-
bool const loaded = mptcpd_plugin_load(dir, NULL, NULL, pm);
121+
bool const loaded = mptcpd_plugin_load(dir, NULL, dir, NULL, pm);
122122

123123
(void) rmdir(dir);
124124

@@ -187,7 +187,7 @@ static void test_plugin_dispatch(void const *test_data)
187187
struct mptcpd_pm *const pm = NULL;
188188

189189
bool const loaded =
190-
mptcpd_plugin_load(dir, default_plugin, NULL, pm);
190+
mptcpd_plugin_load(dir, default_plugin, dir, NULL, pm);
191191
assert(loaded);
192192

193193
// Notice that we call plugin 1 twice.
@@ -257,7 +257,11 @@ static void test_null_plugin_ops(void const *test_data)
257257
static char const *const default_plugin = NULL;
258258
struct mptcpd_pm *const pm = NULL;
259259

260-
bool const loaded = mptcpd_plugin_load(dir, default_plugin, NULL, pm);
260+
bool const loaded = mptcpd_plugin_load(dir,
261+
default_plugin,
262+
dir,
263+
NULL,
264+
pm);
261265
assert(loaded);
262266

263267
char const name[] = "null ops";

0 commit comments

Comments
 (0)