diff options
author | Jake Petroules <jake.petroules@petroules.com> | 2014-01-28 07:29:53 -0500 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-04 19:36:58 +0100 |
commit | fdef360bad0f2f1059ff81f1bdd608332541abac (patch) | |
tree | d17dbfec3a134ae819ba7a0ace9889e716981208 /tests | |
parent | cc88e6e92c806def34bce8cdcab275934ab646bf (diff) |
QFileSelector: correct the macros for Apple platforms.
This fixes a serious regression from
7d72516b52b20b0782d972224a55a43e74b8ae5a.
[ChangeLog] QFileSelector: the identifier for OS X has been changed back
to 'osx' from 'mac', and 'mac' and 'darwin' have now been added as
selectors for Darwin OS (which is the base of both OS X and iOS).
Task-number: QTBUG-35073
Change-Id: I83183e34c5a697338cc1ddcac33a41bd379ded12
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/io/qfileselector/platforms/+darwin/test (renamed from tests/auto/corelib/io/qfileselector/platforms/+unix/+ios/test) | 0 | ||||
-rw-r--r-- | tests/auto/corelib/io/qfileselector/platforms/+darwin/test2 (renamed from tests/auto/corelib/io/qfileselector/platforms/+unix/+mac/test) | 0 | ||||
-rw-r--r-- | tests/auto/corelib/io/qfileselector/platforms/+osx/test2 | 0 | ||||
-rw-r--r-- | tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/+ios/test | 0 | ||||
-rw-r--r-- | tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/+osx/test | 0 | ||||
-rw-r--r-- | tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/test | 0 | ||||
-rw-r--r-- | tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/test | 0 | ||||
-rw-r--r-- | tests/auto/corelib/io/qfileselector/qfileselector.qrc | 10 | ||||
-rw-r--r-- | tests/auto/corelib/io/qfileselector/tst_qfileselector.cpp | 3 |
9 files changed, 9 insertions, 4 deletions
diff --git a/tests/auto/corelib/io/qfileselector/platforms/+unix/+ios/test b/tests/auto/corelib/io/qfileselector/platforms/+darwin/test index e69de29bb2..e69de29bb2 100644 --- a/tests/auto/corelib/io/qfileselector/platforms/+unix/+ios/test +++ b/tests/auto/corelib/io/qfileselector/platforms/+darwin/test diff --git a/tests/auto/corelib/io/qfileselector/platforms/+unix/+mac/test b/tests/auto/corelib/io/qfileselector/platforms/+darwin/test2 index e69de29bb2..e69de29bb2 100644 --- a/tests/auto/corelib/io/qfileselector/platforms/+unix/+mac/test +++ b/tests/auto/corelib/io/qfileselector/platforms/+darwin/test2 diff --git a/tests/auto/corelib/io/qfileselector/platforms/+osx/test2 b/tests/auto/corelib/io/qfileselector/platforms/+osx/test2 new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/auto/corelib/io/qfileselector/platforms/+osx/test2 diff --git a/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/+ios/test b/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/+ios/test new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/+ios/test diff --git a/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/+osx/test b/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/+osx/test new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/+osx/test diff --git a/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/test b/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/test new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/+mac/test diff --git a/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/test b/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/test new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/auto/corelib/io/qfileselector/platforms/+unix/+darwin/test diff --git a/tests/auto/corelib/io/qfileselector/qfileselector.qrc b/tests/auto/corelib/io/qfileselector/qfileselector.qrc index abfead2a55..8fe7b841d2 100644 --- a/tests/auto/corelib/io/qfileselector/qfileselector.qrc +++ b/tests/auto/corelib/io/qfileselector/qfileselector.qrc @@ -13,8 +13,10 @@ <file>platforms/test</file> <file>platforms/+unix/+android/test</file> <file>platforms/+unix/+blackberry/test</file> - <file>platforms/+unix/+ios/test</file> - <file>platforms/+unix/+mac/test</file> + <file>platforms/+unix/+darwin/+mac/+ios/test</file> + <file>platforms/+unix/+darwin/+mac/+osx/test</file> + <file>platforms/+unix/+darwin/+mac/test</file> + <file>platforms/+unix/+darwin/test</file> <file>platforms/+windows/+wince/test</file> <file>platforms/+windows/test</file> <file>platforms/+windows/test2</file> @@ -24,12 +26,14 @@ <file>platforms/+android/test2</file> <file>platforms/+blackberry/test2</file> <file>platforms/+ios/test2</file> - <file>platforms/+mac/test2</file> + <file>platforms/+osx/test2</file> <file>platforms/+linux/test2</file> <file>platforms/+wince/test2</file> <file>platforms/+android/test</file> <file>platforms/+blackberry/test</file> <file>platforms/+ios/test</file> + <file>platforms/+osx/test</file> + <file>platforms/+darwin/test</file> <file>platforms/+mac/test</file> <file>platforms/+linux/test</file> <file>platforms/+wince/test</file> diff --git a/tests/auto/corelib/io/qfileselector/tst_qfileselector.cpp b/tests/auto/corelib/io/qfileselector/tst_qfileselector.cpp index d6461c3aba..4ccaecba00 100644 --- a/tests/auto/corelib/io/qfileselector/tst_qfileselector.cpp +++ b/tests/auto/corelib/io/qfileselector/tst_qfileselector.cpp @@ -94,7 +94,8 @@ void tst_QFileSelector::basicTest_data() QString test2("/test2"); QString expectedPlatform1File(":/platforms"); QString expectedPlatform2File(""); //Only the last selector -#if defined(Q_OS_UNIX) && !defined(Q_OS_ANDROID) && !defined(Q_OS_BLACKBERRY) && !defined(Q_OS_IOS) && !defined(Q_OS_LINUX) && !defined(Q_OS_MAC) +#if defined(Q_OS_UNIX) && !defined(Q_OS_ANDROID) && !defined(Q_OS_BLACKBERRY) && \ + !defined(Q_OS_DARWIN) && !defined(Q_OS_LINUX) /* We are only aware of specific unixes, and do not have test files for any of the others. However those unixes can get a selector added from the result of a uname call, so this will lead to a case where we don't have that file so we can't expect the concatenation of platform |