From: Nibha Sharma Date: Thu, 7 Feb 2019 03:24:30 +0000 (+0530) Subject: [ITC][media-content][NonACR][DPTTIZEN-3102,Fixed precondition fail check] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F200320%2F1;p=test%2Ftct%2Fnative%2Fapi.git [ITC][media-content][NonACR][DPTTIZEN-3102,Fixed precondition fail check] Change-Id: I72972ab6df3fed8182dd0b4e6696d25807abbd15 Signed-off-by: Nibha Sharma (cherry picked from commit ae752e45953e4620d2910701c8d7e83637377e95) --- diff --git a/src/itc/media-content/ITs-media-content-common.h b/src/itc/media-content/ITs-media-content-common.h index 3ae843ee0..88516ecb1 100755 --- a/src/itc/media-content/ITs-media-content-common.h +++ b/src/itc/media-content/ITs-media-content-common.h @@ -90,11 +90,6 @@ bool g_bScanFeatureMismatch; #define START_TEST_PLAYLIST {\ FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);\ - if ( !g_bMediaContentStartup )\ - {\ - FPRINTF("[Line : %d][%s] Precondition of Media-Content failed so leaving test\\n",__LINE__, API_NAMESPACE);\ - return 1;\ - }\ if ( g_bScanFeatureMismatch )\ {\ FPRINTF("[Line : %d][%s] Feature support as returned and error code as returned by media_content_scan_file() mismatched, Leaving test\\n", __LINE__, API_NAMESPACE);\ @@ -105,6 +100,11 @@ bool g_bScanFeatureMismatch; FPRINTF("[Line : %d][%s] Content scanning others feature not supported, Leaving test\\n", __LINE__, API_NAMESPACE);\ return 0;\ }\ + if ( !g_bMediaContentStartup )\ + {\ + FPRINTF("[Line : %d][%s] Precondition of Media-Content failed so leaving test\\n",__LINE__, API_NAMESPACE);\ + return 1;\ + }\ } #define CHECK_HANDLE_CLEANUP(Handle, API, FreeResource) {\