qt5base-lts/tests/auto/corelib
Friedemann Kleint 0e8a2788d8 Fix Windows: QStandardPath::findExecutable() to check suffixes.
Append the Windows executables suffixes from the PATHEXT
environment variable.

The previous code had a bug since the 'break' statement
bailed out of the inner loop only.

Factor search code out into a separate functions, avoiding
repeated invocations of list.constEnd() and variable
assignments in the old code.

Add a static function that is called on Unix and on Windows
for executable names with a suffix.

Call another function applying a candidate list of suffixes
in case an executable name without a suffix is passed.

Lower case the extensions from PATHEXT, streamline code.

Split up the test, add a _data() slot for clarity.

Task-number: QTBUG-27457
Change-Id: I2bf34de52aeadddd3b937ad1e22191c3c850fd26
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2012-10-08 17:21:35 +02:00
..
animation Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
codecs Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
global QFlags: use unsigned int when the enum's underlying is unsigned 2012-09-28 23:50:10 +02:00
io Fix Windows: QStandardPath::findExecutable() to check suffixes. 2012-10-08 17:21:35 +02:00
itemmodels QModelIndex: clean up integer size confusion in the API 2012-09-22 20:45:12 +02:00
json Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
kernel Make documentation of QVariant::isNull more explicit. 2012-09-29 02:31:35 +02:00
mimetypes Use QStringList::join(QChar) overload where applicable [QtCore] 2012-09-23 23:30:18 +02:00
plugin Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
statemachine Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
thread Move QFutureSynchronizer back to QtCore 2012-09-28 23:50:10 +02:00
tools tst_QLocale: remove QSKIP, wrap Q_OS_MAC/Q_OS_WIN 2012-10-04 09:09:15 +02:00
xml Remove duplicate words and punctuation from documentation. 2012-09-26 04:03:20 +02:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00