diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2016-08-10 14:12:10 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2016-08-11 06:57:41 +0000 |
commit | a4a326800400d07fdab2da872c04d30c17602b4d (patch) | |
tree | 83b00c5c11a6fd8785c64329d61b43542b8fc5ec /tests | |
parent | 64d931d5fc5f17b8c4875f6c59f900aa59080881 (diff) |
Fix QT_BUILD_INTERNAL usage in autotests
We need to do the define check after QtTest include, or otherwise the
affected tests are always skipped.
Change-Id: I472c1222a8c4f98cd722b9190c94412f7cf4808a
Reviewed-by: Mika Salmela <mika.salmela@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/chartdataset/tst_chartdataset.cpp | 3 | ||||
-rw-r--r-- | tests/auto/domain/tst_domain.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/chartdataset/tst_chartdataset.cpp b/tests/auto/chartdataset/tst_chartdataset.cpp index fcbb34bc..78c3d5a4 100644 --- a/tests/auto/chartdataset/tst_chartdataset.cpp +++ b/tests/auto/chartdataset/tst_chartdataset.cpp @@ -18,9 +18,10 @@ ** $QT_END_LICENSE$ ** ******************************************************************************/ -#ifndef QT_BUILD_INTERNAL #include <QtTest/QtTest> +#ifndef QT_BUILD_INTERNAL + class tst_ChartDataSet: public QObject { Q_OBJECT diff --git a/tests/auto/domain/tst_domain.cpp b/tests/auto/domain/tst_domain.cpp index 8b960eae..55e4dba1 100644 --- a/tests/auto/domain/tst_domain.cpp +++ b/tests/auto/domain/tst_domain.cpp @@ -18,10 +18,11 @@ ** $QT_END_LICENSE$ ** ******************************************************************************/ -#ifndef QT_BUILD_INTERNAL #include <QtTest/QtTest> +#ifndef QT_BUILD_INTERNAL + class tst_Domain: public QObject { Q_OBJECT |