tests: fix to use proper path of modules for the given arch 94/264294/1
authorSung-Jin Park <sj76.park@samsung.com>
Wed, 15 Sep 2021 06:32:24 +0000 (15:32 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Wed, 15 Sep 2021 12:06:05 +0000 (21:06 +0900)
Change-Id: I90cb83ceb54fd809e22826f37aeb9205dc339235
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
tests/mmi-provider-tests.cpp

index 4f3f44d..686e091 100644 (file)
@@ -31,6 +31,9 @@ extern "C" {
 #include <dirent.h>
 #include <dlfcn.h>
 
+#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);