##// END OF EJS Templates
use standardized test export macros...
Oswald Buddenhagen -
r2892:5c50b9f6fefd
parent child
Show More
@@ -75,11 +75,6 OTHER_FILES += doc/qtcharts.qdocconf \
75 doc/src/* \
75 doc/src/* \
76 doc/images/*
76 doc/images/*
77
77
78 #Define for unit tests
79 CONFIG(debug, debug|release) {
80 DEFINES += BUILD_PRIVATE_UNIT_TESTS
81 }
82
83 msvc {
78 msvc {
84 # Suppress "conversion from 'size_t' to 'int', possible loss of data" warnings in 64bit
79 # Suppress "conversion from 'size_t' to 'int', possible loss of data" warnings in 64bit
85 # builds resulting from usage of str::sort
80 # builds resulting from usage of str::sort
@@ -44,14 +44,7
44 # define QT_CHARTS_EXPORT
44 # define QT_CHARTS_EXPORT
45 #endif
45 #endif
46
46
47 #if defined(BUILD_PRIVATE_UNIT_TESTS) && defined(QT_BUILD_CHARTS_LIB)
47 #define QT_CHARTS_AUTOTEST_EXPORT Q_AUTOTEST_EXPORT
48 # define QT_CHARTS_AUTOTEST_EXPORT Q_DECL_EXPORT
49 #elif defined(BUILD_PRIVATE_UNIT_TESTS) && !defined(QT_BUILD_CHARTS_LIB)
50 # define QT_CHARTS_AUTOTEST_EXPORT Q_DECL_IMPORT
51 #else
52 # define QT_CHARTS_AUTOTEST_EXPORT
53 #endif
54
55
48
56 #define QT_CHARTS_NAMESPACE QtCharts
49 #define QT_CHARTS_NAMESPACE QtCharts
57
50
@@ -8,8 +8,3 QT += testlib widgets
8
8
9 INCLUDEPATH += ../inc
9 INCLUDEPATH += ../inc
10 HEADERS += ../inc/tst_definitions.h
10 HEADERS += ../inc/tst_definitions.h
11
12 #Define for unit tests
13 CONFIG(debug, debug|release) {
14 DEFINES += BUILD_PRIVATE_UNIT_TESTS
15 }
@@ -18,7 +18,7
18 ** $QT_END_LICENSE$
18 ** $QT_END_LICENSE$
19 **
19 **
20 ******************************************************************************/
20 ******************************************************************************/
21 #ifndef BUILD_PRIVATE_UNIT_TESTS
21 #ifndef QT_BUILD_INTERNAL
22 #include <QtTest/QtTest>
22 #include <QtTest/QtTest>
23
23
24 class tst_ChartDataSet: public QObject {
24 class tst_ChartDataSet: public QObject {
@@ -32,7 +32,7 private Q_SLOTS:
32
32
33 void tst_ChartDataSet::skip()
33 void tst_ChartDataSet::skip()
34 {
34 {
35 QSKIP("This test requires the debug version of library");
35 QSKIP("This test requires a developer build of the library");
36 }
36 }
37
37
38 QTEST_MAIN(tst_ChartDataSet)
38 QTEST_MAIN(tst_ChartDataSet)
@@ -18,7 +18,7
18 ** $QT_END_LICENSE$
18 ** $QT_END_LICENSE$
19 **
19 **
20 ******************************************************************************/
20 ******************************************************************************/
21 #ifndef BUILD_PRIVATE_UNIT_TESTS
21 #ifndef QT_BUILD_INTERNAL
22
22
23 #include <QtTest/QtTest>
23 #include <QtTest/QtTest>
24
24
@@ -33,7 +33,7 private Q_SLOTS:
33
33
34 void tst_Domain::skip()
34 void tst_Domain::skip()
35 {
35 {
36 QSKIP("This test requires the debug version of library");
36 QSKIP("This test requires a developer build of the library");
37 }
37 }
38
38
39 QTEST_MAIN(tst_Domain)
39 QTEST_MAIN(tst_Domain)
General Comments 0
You need to be logged in to leave comments. Login now