void ITs_connection_startup(void)
{
- struct stat buf;
+ struct stat buf;
if ( stat(ERR_LOG, &buf) == 0 )
{
remove(ERR_LOG);
g_bFeatureSupported = true;
g_bFeatureMismatch = false;
g_bFeatureNotSupported = false;
-
+
g_bTelFeatureSupported = TCTCheckSystemInfoFeatureSupported(TELEPHONY_FEATURE, API_NAMESPACE);
g_bWifiFeatureSupported = TCTCheckSystemInfoFeatureSupported(WIFI_FEATURE, API_NAMESPACE);
g_bBtFeatureSupported = TCTCheckSystemInfoFeatureSupported(TETHERING_BLUETOOTH_FEATURE, API_NAMESPACE);
int nRet = connection_create(&g_hConnection);
- if ( false == g_bTelFeatureSupported && false == g_bWifiFeatureSupported && false == g_bBtFeatureSupported && false == g_bEthernetFeatureSupported)
+ if ( false == g_bTelFeatureSupported && false == g_bWifiFeatureSupported && false == g_bBtFeatureSupported && false == g_bEthernetFeatureSupported)
{
g_bFeatureSupported = false;
if ( nRet != CONNECTION_ERROR_NOT_SUPPORTED )
int ITc_connection_get_bt_state_p(void)
{
START_TEST;
-
+
FPRINTF("[Line : %d][%s]Starting test : %s\\n", __LINE__, API_NAMESPACE,__FUNCTION__);
if ( g_nPreconditionError == 1 )
FPRINTF("[Line : %d][%s] connection_get_bt_state API call correctly returned %s error for unsupported bluetooth feature\\n", __LINE__, API_NAMESPACE, ConnectionGetError(nRet));
return 0;
}
-
+
}
PRINT_RESULT(CONNECTION_ERROR_NONE, nRet, "connection_get_bt_state", ConnectionGetError(nRet));
connection_profile_h eFindConnectionProfile = NULL;
int nRet = connection_get_current_profile(g_hConnection, &eFindConnectionProfile);
+
+ if ( nRet == CONNECTION_ERROR_NO_CONNECTION ) {
+ FPRINTF("[Line : %d][%s] ITc_connection_get_current_profile_p NO_CONNECTION\\n", __LINE__, API_NAMESPACE);
+ return 0;
+ }
+
PRINT_RESULT(CONNECTION_ERROR_NONE, nRet, "connection_get_current_profile", ConnectionGetError(nRet));
CHECK_HANDLE(eFindConnectionProfile, "connection_get_current_profile");
eGetConnectionType != CONNECTION_TYPE_CELLULAR &&
eGetConnectionType != CONNECTION_TYPE_ETHERNET &&
eGetConnectionType != CONNECTION_TYPE_BT &&
+ eGetConnectionType != CONNECTION_TYPE_DISCONNECTED &&
eGetConnectionType != CONNECTION_TYPE_NET_PROXY)
{
FPRINTF("[Line : %d][%s] CONNECTION_ERROR_NOT_SUPPORTED in target device\\n", __LINE__, API_NAMESPACE);
return 0;
}
-/** @} */
+/** @} */
/** @} */