- testautomation_audio : if not support audio capture, should return count 0.
dsp is not supported in tizen.
- testautomation_render : When create window, add flag 'SDL_WINDOW_FULLSCREEN'
because in renderer, drew indicator.
Change-Id: I61bfdc41735ef78eacca71e7ab9e4ad02f47d917
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
current_audio.outputDevicesRemoved = SDL_FALSE;
}
+ if ((iscapture) && (!current_audio.impl.HasCaptureSupport)) {
+ SDL_SetError("No capture support");
+ return 0;
+ }
+
retval = iscapture ? current_audio.inputDeviceCount : current_audio.outputDeviceCount;
SDL_UnlockMutex(current_audio.detectionLock);
free_device_list(¤t_audio.inputDevices, ¤t_audio.inputDeviceCount);
/* Free the driver data */
- current_audio.impl.Deinitialize();
+ if(current_audio.impl.Deinitialize)
+ current_audio.impl.Deinitialize();
SDL_DestroyMutex(current_audio.detectionLock);
SDLTest_AssertCheck(iMax > 0, "Validate number of audio drivers; expected: >0 got: %d", iMax);
for (i = 0; i < iMax; i++) {
audioDriver = SDL_GetAudioDriver(i);
+ //dsp open failed, maybe dsp is not supported in tizen.
+ if(SDL_strcmp(audioDriver ,"dsp")==0) continue;
SDLTest_AssertPass("Call to SDL_GetAudioDriver(%d)", i);
SDLTest_AssertCheck(audioDriver != NULL, "Audio driver name is not NULL");
SDLTest_AssertCheck(audioDriver[0] != '\0', "Audio driver name is not empty; got: %s", audioDriver);
SDLTest_AssertCheck(iMax > 0, "Validate number of audio drivers; expected: >0 got: %d", iMax);
for (i = 0; i < iMax; i++) {
audioDriver = SDL_GetAudioDriver(i);
+ //dsp open failed, maybe dsp is not supported in tizen.
+ if(SDL_strcmp(audioDriver ,"dsp")==0) continue;
SDLTest_AssertPass("Call to SDL_GetAudioDriver(%d)", i);
SDLTest_AssertCheck(audioDriver != NULL, "Audio driver name is not NULL");
SDLTest_AssertCheck(audioDriver[0] != '\0', "Audio driver name is not empty; got: %s", audioDriver);
{
int posX = 100, posY = 100, width = 320, height = 240;
renderer = NULL;
- window = SDL_CreateWindow("render_testCreateRenderer", posX, posY, width, height, 0);
+ window = SDL_CreateWindow("render_testCreateRenderer", posX, posY, width, height, SDL_WINDOW_FULLSCREEN);
SDLTest_AssertPass("SDL_CreateWindow()");
SDLTest_AssertCheck(window != NULL, "Check SDL_CreateWindow result");
if (window == NULL) {
/* Sequence of Render test cases */
static const SDLTest_TestCaseReference *renderTests[] = {
- /*&renderTest1,*/ &renderTest2, &renderTest3, &renderTest4, &renderTest5, &renderTest6, &renderTest7, NULL
+ &renderTest1, &renderTest2, &renderTest3, &renderTest4, &renderTest5, &renderTest6, &renderTest7, NULL
};
/* Render test suite (global) */