return;
}
+static bool __is_test_app()
+{
+ char* appid = NULL;
+ int ret = app_manager_get_app_id(getpid(), &appid);
+ if (APP_MANAGER_ERROR_NONE != ret || NULL == appid) {
+ return false;
+ }
+ SLOG(LOG_INFO, tts_tag(), "[INFO] app id (%s)", appid);
+
+ bool is_test_app = false;
+ if (0 == strncmp(appid, "org.tizen.tts-native-itc", 32) || 0 == strncmp(appid, "org.tizen.tts-native-utc", 32)) {
+ SLOG(LOG_INFO, tts_tag(), "[INFO] Test mode is on");
+ is_test_app = true;
+ }
+
+ free(appid);
+ return is_test_app;
+}
+
int ttse_main(int argc, char** argv, ttse_request_callback_s *callback)
{
bundle *b = NULL;
int ret = TTSE_ERROR_NONE;
g_is_terminated = false;
-
b = bundle_import_from_argv(argc, argv);
if (NULL != b) {
char *val = NULL;
}
/* If a new TTS engine is different from the current engine, call ttse_terminate() */
- if (FALSE == __is_default_engine()) {
+ if (FALSE == __is_default_engine() && !__is_test_app()) {
SLOG(LOG_WARN, tts_tag(), "[WARNING] TTS engine is changed. Please call ttse_terminate()");
ttse_terminate();
return TTSE_ERROR_NONE;