From 1e0fad5c702502fdddff9c3f7681a11d2702e65c Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Wed, 15 Sep 2021 15:32:24 +0900 Subject: [PATCH] tests: fix to use proper path of modules for the given arch Change-Id: I90cb83ceb54fd809e22826f37aeb9205dc339235 Signed-off-by: Sung-Jin Park --- tests/mmi-provider-tests.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/mmi-provider-tests.cpp b/tests/mmi-provider-tests.cpp index 4f3f44d..686e091 100644 --- a/tests/mmi-provider-tests.cpp +++ b/tests/mmi-provider-tests.cpp @@ -31,6 +31,9 @@ extern "C" { #include #include +#define KEYBOARD_MODULE "libmmi_modality_keyboard.so" +#define MODALITY_KEYBOARD_MODULE_PATH (PROVIDER_PATH KEYBOARD_MODULE) + class MMIProviderTest : public ::testing::Test { public: @@ -199,7 +202,7 @@ TEST_F(MMIProviderIfaceTest, MMIProviderRegisterCaps) { int r = -1; - mmi_provider_handle *provider = _provider_load_module("/lib/provider/libmmi_modality_keyboard.so"); + mmi_provider_handle *provider = _provider_load_module(MODALITY_KEYBOARD_MODULE_PATH); EXPECT_EQ(provider->capabilities, MODALITY_PROVIDER_CAP_KEY_EVENT); EXPECT_NE(provider, nullptr); @@ -212,7 +215,7 @@ TEST_F(MMIProviderIfaceTest, MMIProviderRegisterCapsFail) { int r = -1; - mmi_provider_handle *provider = _provider_load_module("/lib/provider/libmmi_modality_keyboard.so"); + mmi_provider_handle *provider = _provider_load_module(MODALITY_KEYBOARD_MODULE_PATH); EXPECT_EQ(provider->capabilities, MODALITY_PROVIDER_CAP_KEY_EVENT); EXPECT_NE(provider, nullptr); -- 2.7.4