Android: Fix tst_QFileInfo::isExecutable()
Use correct path for executable file. Change-Id: I50283fc43fe6561cb8eb687f739f21a3d5cbadbd Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>bb10
parent
1649b973fd
commit
57ca50cbc7
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue