Changed tts pattern which is searched in dlog 95/214895/2
authorOskar Chodowicz <o.chodowicz@samsung.com>
Fri, 27 Sep 2019 09:27:48 +0000 (11:27 +0200)
committerOskar Chodowicz <o.chodowicz@samsung.com>
Fri, 27 Sep 2019 14:18:06 +0000 (14:18 +0000)
Supports assertions on spoken text from all sources, not only from
screen-reader
Change-Id: Idad27f3c777ac4b065bf429586567cd73c351f6d

src/batch/BatchRunner.cpp

index c73cf3d..715e79e 100644 (file)
@@ -1623,8 +1623,8 @@ static void threadFunc(StatPtr result, std::unique_ptr<BatchExecutor> exec, std:
                                if (!w.searchLine) {
                                        *w.found = true;
                                } else {
-                                       if (txt.find("(tts_speak_customized)") != std::string::npos) {
-                                               static const auto prefix = std::string{ "TTS reading text '" };
+                                       if (txt.find("tts_add_text(") != std::string::npos) {
+                                               static const auto prefix = std::string{ "Text is valid - text is '" };
                                                static const auto postfix = std::string{ "'" };
 
                                                auto z = txt.find(prefix);