summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2012-03-07 16:17:46 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-08 05:31:40 +0100
commit8854b74cf4511c758b998abfc269cc1f3a11d4a1 (patch)
tree42d9bd930f04c2589a0494c4dc5d2ec567883e50 /src
parentd81b065bb3cea85a98f2299354d05ce440032f1f (diff)
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>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions