diff options
author | Zeno Albisser <zeno.albisser@nokia.com> | 2010-04-29 16:56:12 +0200 |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 12:24:52 +0200 |
commit | 8be4ea0063dac6091ce896d019a149864b5d0003 (patch) | |
tree | b451bb24d059395a17bc93b409a9c4f96ebfa6fe /tests | |
parent | 0782c5d1ad6d57204a4ed9b17f0ce08734c6e3a9 (diff) |
Fix to allow upper- and lowercase .dll suffix on windows
This fix is needed since windows uses case insensitive filesystems.
Reviewed-by: Joao
Task-number: QTBUG-10305
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qlibrary/tst_qlibrary.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qlibrary/tst_qlibrary.cpp b/tests/auto/qlibrary/tst_qlibrary.cpp index 6ea9ed4ecb..0478653762 100644 --- a/tests/auto/qlibrary/tst_qlibrary.cpp +++ b/tests/auto/qlibrary/tst_qlibrary.cpp @@ -53,6 +53,7 @@ #define a_VALID false #define so_VALID false #define dll_VALID false +#define DLL_VALID false #if defined(Q_OS_DARWIN) # undef bundle_VALID @@ -88,6 +89,8 @@ #elif defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN) # undef dll_VALID # define dll_VALID true +# undef DLL_VALID +# define DLL_VALID true # define SUFFIX ".dll" # define PREFIX "" @@ -352,6 +355,7 @@ void tst_QLibrary::isLibrary_data() QTest::newRow(".a") << QString("mylib.a") << a_VALID; QTest::newRow(".bundle") << QString("mylib.bundle") << bundle_VALID; QTest::newRow(".dll") << QString("mylib.dll") << dll_VALID; + QTest::newRow(".DLL") << QString("MYLIB.DLL") << DLL_VALID; QTest::newRow(".dl2" ) << QString("mylib.dl2") << false; QTest::newRow(".dylib") << QString("mylib.dylib") << dylib_VALID; QTest::newRow(".sl") << QString("mylib.sl") << sl_VALID; @@ -556,7 +560,11 @@ void tst_QLibrary::fileName() } QVERIFY(ok); +#if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN) + QCOMPARE(lib.fileName().toLower(), expectedFilename.toLower()); +#else QCOMPARE(lib.fileName(), expectedFilename); +#endif } |