qt5base-lts/tests/auto/testlib
Jason McDonald 8854b74cf4 selftests: Improve reporting of problems with loading expected output
If the expected output file was missing (e.g. not included in
selftests.qrc), tst_selftests would trigger an assert inside QList by
calling QList::at() on an empty list.  Make tst_selftests detect this
error instead and give a meaningful error message.

When loading expected output for the crashes selftest, where there are
several alternative versions of the expected output, the code reused the
"exp" variable when loading the alternative test output files.  This
caused the last file loaded to be used unintentionally if none of the
alternative files had the correct number of lines.  Use a different
variable so that exp remains empty if none of the alternatives are
valid and a failure can be reported.

Change-Id: I35b2a3d905d069d3ee8dcb1447836eb68d5c8612
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2012-03-08 05:31:40 +01:00
..
qsignalspy Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
selftests selftests: Improve reporting of problems with loading expected output 2012-03-08 05:31:40 +01:00
testlib.pro Moved autotests in category 'testlib' into new directory structure 2011-09-12 08:36:15 +02:00