test: fixed usage of QEXPECT_FAIL in tst_qglyphrun::initTestCase
authorRohan McGovern <rohan.mcgovern@nokia.com>
Mon, 8 Aug 2011 00:31:58 +0000 (10:31 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 8 Aug 2011 03:53:26 +0000 (05:53 +0200)
commit532ba5aa702b6b17dd7489f50c946ba1b02852c7
treeaa5f2d54563d7387402071cc64d22abd973e79fd
parent230b088c373f0d8080d730797b477a8de4418605
test: fixed usage of QEXPECT_FAIL in tst_qglyphrun::initTestCase

The rest of this test gives unpredictable results if initTestCase fails.

Normally, a failure in initTestCase skips the rest of the test, but this
is not the case if QEXPECT_FAIL is used.  Adjust the test to ensure the
rest of it is still correctly skipped.

Change-Id: I8ba76161e788f10801029ef10693e9ac275a2897
Reviewed-on: http://codereview.qt.nokia.com/2713
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
tests/auto/qglyphrun/tst_qglyphrun.cpp