qt5base-lts/tests/auto/corelib/io
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
..
largefile Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qabstractfileengine Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qbuffer Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdatastream Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdataurl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdebug Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdir Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdiriterator Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qfile remove no-op test from tst_qfile 2012-09-27 15:50:17 +02:00
qfileinfo Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qfilesystementry Fix default-constructed QFileSystemEntry 2012-09-25 00:08:16 +02:00
qfilesystemwatcher Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qiodevice Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qipaddress Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qnodebug Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qprocess QProcess.tests: adding test for channel forwarding 2012-10-02 13:22:49 +02:00
qprocessenvironment Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qresourceengine Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsettings Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstandardpaths Fix Windows: QStandardPath::findExecutable() to check suffixes. 2012-10-08 17:21:35 +02:00
qtemporarydir Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtemporaryfile Rename createLocalFile to createNativeFile & deprecate createLocalFile 2012-10-02 10:43:48 +02:00
qtextstream Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qurl Overhaul a little the QUrl error reporting. 2012-10-02 22:34:42 +02:00
qurlinternal Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qurlquery Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qwinoverlappedionotifier QWinOverlappedIoNotifier test for multiple I/O operations added 2012-10-02 08:05:58 +02:00
io.pro test: subtract qurlinternal.pro when private_tests are not enabled 2012-07-10 14:16:13 +02:00