From f784665006cc686868dcf0f0ed25d2152d62e772 Mon Sep 17 00:00:00 2001 From: Rangaiah <107978226+nlrcomcast@users.noreply.github.com> Date: Thu, 31 Oct 2024 22:29:19 +0530 Subject: [PATCH] Update test_rbus_fr.c --- tests/test_rbus_fr.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/test_rbus_fr.c b/tests/test_rbus_fr.c index 0e9723df..bdd3e19a 100644 --- a/tests/test_rbus_fr.c +++ b/tests/test_rbus_fr.c @@ -1548,24 +1548,24 @@ void test_subscribeTo_CurrentActiveInterface_Event() CU_ASSERT_NOT_EQUAL(rc, RBUS_ERROR_SUCCESS); webconfigRbusInit("consumerComponent"); - int res = rbus_open(&handle, "providerComponent"); - if(res != RBUS_ERROR_SUCCESS) - { - CU_FAIL("rbus_open failed for providerComponent"); - } - - rbusDataElement_t webcfgInterfaceElement[1] = { - {WEBCFG_INTERFACE_PARAM, RBUS_ELEMENT_TYPE_PROPERTY, {NULL, NULL, NULL, NULL, webcfgInterfaceSubscribeHandler, NULL}} - }; - rbusError_t ret = rbus_regDataElements(handle, 1, webcfgInterfaceElement); - CU_ASSERT_EQUAL(ret, RBUS_ERROR_SUCCESS); + // int res = rbus_open(&handle, "providerComponent"); + // if(res != RBUS_ERROR_SUCCESS) + // { + // CU_FAIL("rbus_open failed for providerComponent"); + // } + + // rbusDataElement_t webcfgInterfaceElement[1] = { + // {WEBCFG_INTERFACE_PARAM, RBUS_ELEMENT_TYPE_PROPERTY, {NULL, NULL, NULL, NULL, webcfgInterfaceSubscribeHandler, NULL}} + // }; + // rbusError_t ret = rbus_regDataElements(handle, 1, webcfgInterfaceElement); + // CU_ASSERT_EQUAL(ret, RBUS_ERROR_SUCCESS); rc = subscribeTo_CurrentActiveInterface_Event(); CU_ASSERT_EQUAL(rc, RBUS_ERROR_SUCCESS); - rbusError_t result = rbus_unregDataElements(handle, 1, webcfgInterfaceElement); - CU_ASSERT_EQUAL(result, RBUS_ERROR_SUCCESS); - rbus_close(handle); + // rbusError_t result = rbus_unregDataElements(handle, 1, webcfgInterfaceElement); + // CU_ASSERT_EQUAL(result, RBUS_ERROR_SUCCESS); + // rbus_close(handle); webpaRbus_Uninit(); }