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;
#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);\
{
g_bUaInit = false;
g_bIsUaFeatureSupported = false;
+ g_bFeatureByPass = false;
struct stat stBuff;
if ( stat(ERR_LOG, &stBuff) == 0 )
}
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)
{
g_bUaInit = false;
g_bIsUaFeatureSupported = false;
+ g_bFeatureByPass = false;
g_hMonitor = NULL;
struct stat stBuff;
}
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)
{
g_bUaInit = false;
g_bIsUaFeatureSupported = false;
+ g_bFeatureByPass = false;
g_hService = NULL;
struct stat stBuff;
}
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)
g_bUaInit = false;
g_hUser = NULL;
g_bIsUaFeatureSupported = false;
+ g_bFeatureByPass = false;
char pszAccountStr[] = {"default@default.com"};
struct stat stBuff;
}
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)