[ITC][capi-network-ua][NonACR][Emulator tc fail issue fix due to feature not supported] 81/263381/2
authorNibha Sharma <nibha.sharma@samsung.com>
Wed, 1 Sep 2021 12:36:51 +0000 (18:06 +0530)
committershobhit verma <shobhit.v@samsung.com>
Wed, 1 Sep 2021 13:03:35 +0000 (13:03 +0000)
Change-Id: Ia6f23a065f75fd5166f352f5fc78549508b3809a
Signed-off-by: Nibha Sharma <nibha.sharma@samsung.com>
src/itc/capi-network-ua/ITs-capi-network-ua-common.h
src/itc/capi-network-ua/ITs-capi-network-ua-device.c
src/itc/capi-network-ua/ITs-capi-network-ua-monitor.c
src/itc/capi-network-ua/ITs-capi-network-ua-service.c
src/itc/capi-network-ua/ITs-capi-network-ua-user.c

index 69a0abdebd1f78a9345b632f452490898668b4f4..f0e57f0672569c26ad44e4882de22293d2106595 100755 (executable)
@@ -34,6 +34,7 @@ ua_monitor_h g_hMonitor;
 ua_user_h g_hUser;
 ua_service_h g_hService;
 bool g_bUaInit;
+bool g_bFeatureByPass;
 bool g_bIsUaFeatureSupported;
 ua_service_h g_hService;
 bool g_bCallBackHit;
@@ -48,6 +49,10 @@ static char g_hServiceStr[] = {"ua.service.default"};
 
 #define START_TEST {\
        FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);\
+       if ( g_bFeatureByPass )\
+       {\
+               return 0;\
+       }\
        if ( !g_bUaInit )\
        {\
                FPRINTF("[Line : %d][%s] Precondition of capi_network_ua_service failed so leaving test\\n", __LINE__, API_NAMESPACE);\
index 57b14b9382d607c09e6613b3820dd1e0c047dcf7..ae34c365918ec51da8ae4ac1065d42879f242b66 100755 (executable)
@@ -41,6 +41,7 @@ void ITs_capi_network_ua_device_startup(void)
 {
        g_bUaInit = false;
        g_bIsUaFeatureSupported = false;
+       g_bFeatureByPass = false;
 
        struct stat stBuff;
        if ( stat(ERR_LOG, &stBuff) == 0 )
@@ -61,7 +62,7 @@ void ITs_capi_network_ua_device_startup(void)
                }
 
                FPRINTF("[%s:%d] feature and ua_initialize is unsupported\\n", __FILE__, __LINE__);
-               g_bUaInit = true;
+               g_bFeatureByPass = true;
                return;
        }
        else if (nRet == UA_ERROR_NONE || nRet == UA_ERROR_ALREADY_DONE)
index eda909cbd45a22a10b79a9eff545faa9d152f329..e3743ecacb68a4a91a12a38caa31ac25b2dbb40f 100755 (executable)
@@ -47,6 +47,7 @@ void ITs_capi_network_ua_monitor_startup(void)
 {
        g_bUaInit = false;
        g_bIsUaFeatureSupported = false;
+       g_bFeatureByPass = false;
        g_hMonitor = NULL;
 
        struct stat stBuff;
@@ -68,7 +69,7 @@ void ITs_capi_network_ua_monitor_startup(void)
                }
 
                FPRINTF("[%s:%d] ua_initialize is unsupported\\n", __FILE__, __LINE__);
-               g_bUaInit = true;
+               g_bFeatureByPass = true;
                return;
        }
        else if (nRet != UA_ERROR_NONE && nRet != UA_ERROR_ALREADY_DONE)
index ac36e159a702068392e97eca7b48d895714e80dd..3b73941a76537f105bb4d66b6572d93a95d1e2fd 100755 (executable)
@@ -32,6 +32,7 @@ void ITs_capi_network_ua_service_startup(void)
 {
        g_bUaInit = false;
        g_bIsUaFeatureSupported = false;
+       g_bFeatureByPass = false;
        g_hService = NULL;
 
        struct stat stBuff;
@@ -53,7 +54,7 @@ void ITs_capi_network_ua_service_startup(void)
                }
 
                FPRINTF("[%s:%d] feature and ua_initialize is unsupported\\n", __FILE__, __LINE__);
-               g_bUaInit = true;
+               g_bFeatureByPass = true;
                return;
        }
        else if (nRet != UA_ERROR_NONE && nRet != UA_ERROR_ALREADY_DONE)
index bb8294230f1916abceee02a0b82e899f2ac446c9..cd907127e1642b75b32e4641097ebacb36df13f6 100755 (executable)
@@ -32,6 +32,7 @@ void ITs_capi_network_ua_user_startup(void)
        g_bUaInit = false;
        g_hUser = NULL;
        g_bIsUaFeatureSupported = false;
+       g_bFeatureByPass = false;
        char pszAccountStr[] = {"default@default.com"};
 
        struct stat stBuff;
@@ -53,7 +54,7 @@ void ITs_capi_network_ua_user_startup(void)
                }
 
                FPRINTF("[%s:%d] feature and ua_initialize is unsupported\\n", __FILE__, __LINE__);
-               g_bUaInit = true;
+               g_bFeatureByPass = true;
                return;
        }
        else if (nRet != UA_ERROR_NONE && nRet != UA_ERROR_ALREADY_DONE)