evas_object_show(g_evas);
nRet = scmirroring_sink_set_display(hSkMirroring, setDisp[enum_counter], (void *)g_evas);
- if ( nRet != SCMIRRORING_ERROR_NONE )
- {
- FPRINTF("[Line : %d][%s] scmirroring_sink_set_display failed for Display Type = %s, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, ScreenMirroringInfoDisplayType(setDisp[enum_counter]), ScreenMirroringInfoGetError(nRet), nRet);
- scmirroring_sink_destroy(hSkMirroring);
- return 1;
- }
+ PRINT_RESULT_CLEANUP(SCMIRRORING_ERROR_NONE, nRet, "scmirroring_sink_set_display", ScreenMirroringInfoGetError(nRet), scmirroring_sink_destroy(hSkMirroring));
+
nRet = scmirroring_sink_destroy(hSkMirroring);
- PRINT_RESULT(SCMIRRORING_ERROR_NONE, nRet, "scmirroring_sink_destroy", ScreenMirroringInfoGetError(nRet));
+ PRINT_RESULT_NORETURN(SCMIRRORING_ERROR_NONE, nRet, "scmirroring_sink_destroy", ScreenMirroringInfoGetError(nRet));
}
return 0;
nRet = scmirroring_sink_create(&hSkMirroring);
PRINT_RESULT(SCMIRRORING_ERROR_NONE, nRet, "scmirroring_sink_create", ScreenMirroringInfoGetError(nRet));
CHECK_HANDLE(hSkMirroring, "scmirroring_sink_create");
-
+
nRet = scmirroring_sink_set_resolution(hSkMirroring,setResol[enum_counter]);
- if ( nRet != SCMIRRORING_ERROR_NONE )
- {
- FPRINTF("[Line : %d][%s] scmirroring_sink_set_resolution failed for Resolution = %s, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, ScreenMirroringInfoResolution(setResol[enum_counter]), ScreenMirroringInfoGetError(nRet), nRet);
- scmirroring_sink_destroy(hSkMirroring);
- return 1;
- }
+ PRINT_RESULT_CLEANUP(SCMIRRORING_ERROR_NONE, nRet, "scmirroring_sink_set_resolution", ScreenMirroringInfoGetError(nRet), scmirroring_sink_destroy(hSkMirroring));
nRet = scmirroring_sink_destroy(hSkMirroring);
- PRINT_RESULT(SCMIRRORING_ERROR_NONE, nRet, "scmirroring_sink_set_resolution", ScreenMirroringInfoGetError(nRet));
+ PRINT_RESULT_NORETURN(SCMIRRORING_ERROR_NONE, nRet, "scmirroring_sink_destroy", ScreenMirroringInfoGetError(nRet));
}
return 0;
}
{
START_TEST;
scmirroring_sink_h hSkMirroring = NULL;
-
+
int nRet = scmirroring_sink_create(&hSkMirroring);
PRINT_RESULT(SCMIRRORING_ERROR_NONE, nRet, "scmirroring_sink_create", ScreenMirroringInfoGetError(nRet));
+ CHECK_HANDLE(hSkMirroring, "scmirroring_sink_create");
nRet = scmirroring_sink_destroy(hSkMirroring);
PRINT_RESULT(SCMIRRORING_ERROR_NONE, nRet, "scmirroring_sink_destroy", ScreenMirroringInfoGetError(nRet));