From 0a609a93727e13b97b459aa0cb1369b4fe6a94aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Meira?= Date: Tue, 1 Feb 2022 15:48:17 +0000 Subject: [PATCH] updated tests --- tests/test-cxx-build.cpp | 6 +++++- tests/test-plugin.c | 12 ++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/tests/test-cxx-build.cpp b/tests/test-cxx-build.cpp index 729c11f2..cad90510 100644 --- a/tests/test-cxx-build.cpp +++ b/tests/test-cxx-build.cpp @@ -71,7 +71,11 @@ class test_plugin struct mptcpd_pm *const pm = NULL; bool const loaded = - mptcpd_plugin_load(dir, default_plugin, NULL, this->pm); + mptcpd_plugin_load(dir, + default_plugin, + dir, + NULL, + this->pm); assert(loaded); call_plugin_ops(&test_count_4, diff --git a/tests/test-plugin.c b/tests/test-plugin.c index 120da24a..eb14268c 100644 --- a/tests/test-plugin.c +++ b/tests/test-plugin.c @@ -43,7 +43,7 @@ static bool run_plugin_load(mode_t mode, struct l_queue const *queue) assert(mode_ok == 0); bool const loaded = - mptcpd_plugin_load(dir, default_plugin, queue, pm); + mptcpd_plugin_load(dir, default_plugin, dir, queue, pm); if (loaded) { call_plugin_ops(&test_count_4, @@ -118,7 +118,7 @@ static void test_no_plugins(void const *test_data) assert(dir != NULL); struct mptcpd_pm *const pm = NULL; - bool const loaded = mptcpd_plugin_load(dir, NULL, NULL, pm); + bool const loaded = mptcpd_plugin_load(dir, NULL, dir, NULL, pm); (void) rmdir(dir); @@ -187,7 +187,7 @@ static void test_plugin_dispatch(void const *test_data) struct mptcpd_pm *const pm = NULL; bool const loaded = - mptcpd_plugin_load(dir, default_plugin, NULL, pm); + mptcpd_plugin_load(dir, default_plugin, dir, NULL, pm); assert(loaded); // Notice that we call plugin 1 twice. @@ -257,7 +257,11 @@ static void test_null_plugin_ops(void const *test_data) static char const *const default_plugin = NULL; struct mptcpd_pm *const pm = NULL; - bool const loaded = mptcpd_plugin_load(dir, default_plugin, NULL, pm); + bool const loaded = mptcpd_plugin_load(dir, + default_plugin, + dir, + NULL, + pm); assert(loaded); char const name[] = "null ops";