Go to file
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
bin Report failure to open deprecated header file 2012-02-23 04:04:59 +01:00
config.tests Fixing iconv test to match new mkspec name 2012-03-07 16:38:47 +01:00
dist QSqlTableModel::selectRow(): complete documentation 2012-03-07 09:33:44 +01:00
doc/src QRegularExpression: add QRegularExpression* set of classes 2012-03-06 21:53:39 +01:00
examples examples: use QVector<QPointF> instead of QList<QPointF> 2012-03-08 05:31:40 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Renaming QNX mkspecs 2012-03-07 00:13:16 +01:00
qmake move postProcessProject() call to sane location 2012-03-07 22:46:29 +01:00
src testlib: Improve verbose and XPASS output 2012-03-08 05:31:40 +01:00
tests selftests: Improve reporting of problems with loading expected output 2012-03-08 05:31:40 +01:00
tools Merge remote-tracking branch 'origin/api_changes' 2012-03-04 21:45:05 +01:00
util clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Add src/concurrent/qtconcurrentversion.h to .gitignore 2012-02-23 09:01:18 +01:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Move qdoc into qtbase and bootstrap it 2012-03-08 05:31:40 +01:00
configure.bat Remove Q_BYTE_ORDER and -*-endian arguments from configures 2012-03-02 14:48:00 +01:00
header.BSD Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.FDL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL-ONLY Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Remove references to missing tests 2012-03-07 18:43:41 +01:00
sync.profile Add qprocessordetection.h 2012-02-08 12:33:11 +01:00