summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-09-26 02:05:04 +0200
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-09-26 01:06:51 +0000
commit75c240c4521ffbf5f30f3ff59a07bb93c5299850 (patch)
treee75ed5cfa60aa983a325f839fd3f4dd6319c53d1 /tests
parentb814dbd48b2c9de275b711fc52717d274898421c (diff)
Voices test: verify that there is at least one voice
That's slightly nicer than asserting when 0 voices are returned. Change-Id: Ie5d2bdee604983e69ea2cc8c6fcd58aedaf90889 Reviewed-by: Jeremy Whiting <jpwhiting@kde.org> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/texttospeech/tst_qtexttospeech.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/texttospeech/tst_qtexttospeech.cpp b/tests/auto/texttospeech/tst_qtexttospeech.cpp
index 9a6277c..afdecba 100644
--- a/tests/auto/texttospeech/tst_qtexttospeech.cpp
+++ b/tests/auto/texttospeech/tst_qtexttospeech.cpp
@@ -121,6 +121,7 @@ void tst_QTextToSpeech::set_voice()
// Choose a voice
QVector<QVoice> voices = tts.availableVoices();
int vId = 0;
+ QVERIFY(voices.length()); // have at least one voice
if (voices.length() > 1) {
vId = 1;
}