From 891d9e62851ae2471aceecb2be8abb6f8e916b49 Mon Sep 17 00:00:00 2001 From: Oskar Chodowicz Date: Fri, 27 Sep 2019 11:27:48 +0200 Subject: [PATCH] Changed tts pattern which is searched in dlog Supports assertions on spoken text from all sources, not only from screen-reader Change-Id: Idad27f3c777ac4b065bf429586567cd73c351f6d --- src/batch/BatchRunner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/batch/BatchRunner.cpp b/src/batch/BatchRunner.cpp index c73cf3d..715e79e 100644 --- a/src/batch/BatchRunner.cpp +++ b/src/batch/BatchRunner.cpp @@ -1623,8 +1623,8 @@ static void threadFunc(StatPtr result, std::unique_ptr 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); -- 2.7.4