qt5base-lts/tests/auto
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
..
cmake CMake: Improve QT5_GET_MOC_FLAGS macro 2012-10-04 11:58:48 +02:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Include qexception.h instead of qtconcurrentexception.h 2012-09-28 23:50:10 +02:00
corelib Fix Windows: QStandardPath::findExecutable() to check suffixes. 2012-10-08 17:21:35 +02:00
dbus Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
gui Test: Enable tst_QWMatrix::operator_star_qwmatrix 2012-09-27 21:13:52 +02:00
guiapplauncher
network typo fixed in tst_QLocalSocket::verifyListenWithDescriptor_data 2012-10-02 08:06:11 +02:00
opengl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
other Fix #if 0 usage in collections autotest. 2012-10-04 03:03:17 +02:00
printsupport QtPrintSupport: allow slight deviations from pre-defined paper sizes in tests 2012-09-26 10:08:59 +02:00
shared Auto tests: add PlatformClipboard::isAvailable() 2012-09-27 06:07:13 +02:00
sql QSqlQuery::value string overload 2012-10-08 08:55:28 +02:00
testlib Make QUrl::errorString() usable for QtTest output in invalid URLs 2012-10-02 22:34:42 +02:00
tools Use jom in tst_qmake. 2012-10-08 08:46:21 +02:00
widgets test: Remove QSKIP from tst_QToolButton::triggered() 2012-10-04 12:55:23 +02:00
xml Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
auto.pro Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
platformquirks.h Auto tests: remove PlatformQuirks::isAutoMaximizing() 2012-09-26 10:08:59 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00