Android: Fix tst_QFileInfo::isExecutable()

Use correct path for executable file.

Change-Id: I50283fc43fe6561cb8eb687f739f21a3d5cbadbd
Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
bb10
Eskil Abrahamsen Blomfeldt 2015-02-12 13:41:02 +01:00
parent 1649b973fd
commit 57ca50cbc7
1 changed files with 5 additions and 1 deletions

View File

@ -1611,9 +1611,13 @@ void tst_QFileInfo::isWritable()
void tst_QFileInfo::isExecutable()
{
QString appPath = QCoreApplication::applicationDirPath();
#if defined(Q_OS_ANDROID) && !defined(Q_OS_ANDROID_NO_SDK)
appPath += "/libtst_qfileinfo.so";
#else
appPath += "/tst_qfileinfo";
#if defined(Q_OS_WIN)
# if defined(Q_OS_WIN)
appPath += ".exe";
# endif
#endif
QFileInfo fi(appPath);
QCOMPARE(fi.isExecutable(), true);