diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-08-01 13:48:22 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-01 15:03:18 +0200 |
commit | 8934e35bde9ec67b4b3a93217d73a0554b15d3b2 (patch) | |
tree | b97ce3b2c7e35a55b0c5713168c7026e07460161 /tests/auto | |
parent | 9d30343dcd5344e748a28a0f23557a0c89c6d4c3 (diff) | |
download | qtxmlpatterns-8934e35bde9ec67b4b3a93217d73a0554b15d3b2.tar.gz |
Set the Qt API level to compatibility mode in all tests.
Qt 5.0 beta requires changing the default to the 5.0 API, disabling
the deprecated code. However, tests should test (and often do) the
compatibility API too, so turn it back on.
Task-number: QTBUG-25053
Change-Id: Iab3d9fa844e74b7f8a17dbe1c26f9df6fa8dfadc
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto')
34 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/checkxmlfiles/checkxmlfiles.pro b/tests/auto/checkxmlfiles/checkxmlfiles.pro index e4b11e1..a4a3a95 100644 --- a/tests/auto/checkxmlfiles/checkxmlfiles.pro +++ b/tests/auto/checkxmlfiles/checkxmlfiles.pro @@ -19,3 +19,4 @@ DEPLOYMENT += addFiles } else { DEFINES += SOURCETREE=\\\"$$absolute_path(../../..)/\\\" } +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/headersclean/headersclean.pro b/tests/auto/headersclean/headersclean.pro index 93b0e58..534f8aa 100644 --- a/tests/auto/headersclean/headersclean.pro +++ b/tests/auto/headersclean/headersclean.pro @@ -2,3 +2,4 @@ TARGET = tst_headersclean CONFIG += testcase SOURCES += tst_headersclean.cpp QT = core xmlpatterns testlib +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/patternistexamplefiletree/patternistexamplefiletree.pro b/tests/auto/patternistexamplefiletree/patternistexamplefiletree.pro index 61ba4c3..3e79991 100644 --- a/tests/auto/patternistexamplefiletree/patternistexamplefiletree.pro +++ b/tests/auto/patternistexamplefiletree/patternistexamplefiletree.pro @@ -4,3 +4,4 @@ SOURCES += tst_patternistexamplefiletree.cpp QT = core testlib include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/patternistexamples/patternistexamples.pro b/tests/auto/patternistexamples/patternistexamples.pro index e2fa151..02c6689 100644 --- a/tests/auto/patternistexamples/patternistexamples.pro +++ b/tests/auto/patternistexamples/patternistexamples.pro @@ -23,3 +23,4 @@ wince*: { DEFINES += SOURCETREE=\\\"$$absolute_path(../../..)/\\\" } include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/patternistheaders/patternistheaders.pro b/tests/auto/patternistheaders/patternistheaders.pro index a1f4596..9ff24ae 100644 --- a/tests/auto/patternistheaders/patternistheaders.pro +++ b/tests/auto/patternistheaders/patternistheaders.pro @@ -4,3 +4,4 @@ SOURCES += tst_patternistheaders.cpp QT = core testlib include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qabstractmessagehandler/qabstractmessagehandler.pro b/tests/auto/qabstractmessagehandler/qabstractmessagehandler.pro index 82795c2..4814df4 100644 --- a/tests/auto/qabstractmessagehandler/qabstractmessagehandler.pro +++ b/tests/auto/qabstractmessagehandler/qabstractmessagehandler.pro @@ -4,3 +4,4 @@ SOURCES += tst_qabstractmessagehandler.cpp QT = core testlib include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qabstracturiresolver/qabstracturiresolver.pro b/tests/auto/qabstracturiresolver/qabstracturiresolver.pro index 6ac2df8..4f21cfc 100644 --- a/tests/auto/qabstracturiresolver/qabstracturiresolver.pro +++ b/tests/auto/qabstracturiresolver/qabstracturiresolver.pro @@ -5,3 +5,4 @@ HEADERS += TestURIResolver.h QT = core testlib include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qabstractxmlforwarditerator/qabstractxmlforwarditerator.pro b/tests/auto/qabstractxmlforwarditerator/qabstractxmlforwarditerator.pro index 8ba8eb2..07609d5 100644 --- a/tests/auto/qabstractxmlforwarditerator/qabstractxmlforwarditerator.pro +++ b/tests/auto/qabstractxmlforwarditerator/qabstractxmlforwarditerator.pro @@ -4,3 +4,4 @@ SOURCES += tst_qabstractxmlforwarditerator.cpp QT = core testlib include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qabstractxmlnodemodel/qabstractxmlnodemodel.pro b/tests/auto/qabstractxmlnodemodel/qabstractxmlnodemodel.pro index f8b4df1..40a171e 100644 --- a/tests/auto/qabstractxmlnodemodel/qabstractxmlnodemodel.pro +++ b/tests/auto/qabstractxmlnodemodel/qabstractxmlnodemodel.pro @@ -16,3 +16,4 @@ wince*: { DEPLOYMENT += addFiles } +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qabstractxmlreceiver/qabstractxmlreceiver.pro b/tests/auto/qabstractxmlreceiver/qabstractxmlreceiver.pro index a436e76..47eb9dd 100644 --- a/tests/auto/qabstractxmlreceiver/qabstractxmlreceiver.pro +++ b/tests/auto/qabstractxmlreceiver/qabstractxmlreceiver.pro @@ -4,3 +4,4 @@ SOURCES += tst_qabstractxmlreceiver.cpp QT = core testlib include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qapplicationargumentparser/qapplicationargumentparser.pro b/tests/auto/qapplicationargumentparser/qapplicationargumentparser.pro index f970638..793f2e1 100644 --- a/tests/auto/qapplicationargumentparser/qapplicationargumentparser.pro +++ b/tests/auto/qapplicationargumentparser/qapplicationargumentparser.pro @@ -5,3 +5,4 @@ SOURCES += tst_qapplicationargumentparser.cpp \ ../../../tools/xmlpatterns/qapplicationargumentparser.cpp QT = core testlib INCLUDEPATH += ../../../tools/xmlpatterns/ +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qautoptr/qautoptr.pro b/tests/auto/qautoptr/qautoptr.pro index 6059f68..8d3880c 100644 --- a/tests/auto/qautoptr/qautoptr.pro +++ b/tests/auto/qautoptr/qautoptr.pro @@ -3,3 +3,4 @@ CONFIG += testcase SOURCES += tst_qautoptr.cpp QT = core testlib include(../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qsimplexmlnodemodel/qsimplexmlnodemodel.pro b/tests/auto/qsimplexmlnodemodel/qsimplexmlnodemodel.pro index c89495b..3f32d3d 100644 --- a/tests/auto/qsimplexmlnodemodel/qsimplexmlnodemodel.pro +++ b/tests/auto/qsimplexmlnodemodel/qsimplexmlnodemodel.pro @@ -4,3 +4,4 @@ QT += testlib SOURCES += tst_qsimplexmlnodemodel.cpp HEADERS += TestSimpleNodeModel.h include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qsourcelocation/qsourcelocation.pro b/tests/auto/qsourcelocation/qsourcelocation.pro index 3c2c8ea..9a87e9b 100644 --- a/tests/auto/qsourcelocation/qsourcelocation.pro +++ b/tests/auto/qsourcelocation/qsourcelocation.pro @@ -4,3 +4,4 @@ QT += testlib SOURCES += tst_qsourcelocation.cpp include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlformatter/qxmlformatter.pro b/tests/auto/qxmlformatter/qxmlformatter.pro index 6e9e262..db26552 100644 --- a/tests/auto/qxmlformatter/qxmlformatter.pro +++ b/tests/auto/qxmlformatter/qxmlformatter.pro @@ -12,3 +12,4 @@ wince*:{ addFiles.path = . DEPLOYMENT += addFiles } +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlitem/qxmlitem.pro b/tests/auto/qxmlitem/qxmlitem.pro index db9c8a1..d7b66fa 100644 --- a/tests/auto/qxmlitem/qxmlitem.pro +++ b/tests/auto/qxmlitem/qxmlitem.pro @@ -4,3 +4,4 @@ QT += testlib SOURCES += tst_qxmlitem.cpp include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlname/qxmlname.pro b/tests/auto/qxmlname/qxmlname.pro index 5360180..230d744 100644 --- a/tests/auto/qxmlname/qxmlname.pro +++ b/tests/auto/qxmlname/qxmlname.pro @@ -4,3 +4,4 @@ QT += testlib SOURCES += tst_qxmlname.cpp include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlnamepool/qxmlnamepool.pro b/tests/auto/qxmlnamepool/qxmlnamepool.pro index df75682..34be2a3 100644 --- a/tests/auto/qxmlnamepool/qxmlnamepool.pro +++ b/tests/auto/qxmlnamepool/qxmlnamepool.pro @@ -4,3 +4,4 @@ QT += testlib SOURCES += tst_qxmlnamepool.cpp include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlnodemodelindex/qxmlnodemodelindex.pro b/tests/auto/qxmlnodemodelindex/qxmlnodemodelindex.pro index 4c9fbc1..684ed98 100644 --- a/tests/auto/qxmlnodemodelindex/qxmlnodemodelindex.pro +++ b/tests/auto/qxmlnodemodelindex/qxmlnodemodelindex.pro @@ -4,3 +4,4 @@ QT += testlib SOURCES += tst_qxmlnodemodelindex.cpp include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlquery/qxmlquery.pro b/tests/auto/qxmlquery/qxmlquery.pro index 7dca9b9..54a30a7 100644 --- a/tests/auto/qxmlquery/qxmlquery.pro +++ b/tests/auto/qxmlquery/qxmlquery.pro @@ -24,3 +24,4 @@ wince*: { DEPLOYMENT += addFiles patternistFiles } +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlresultitems/qxmlresultitems.pro b/tests/auto/qxmlresultitems/qxmlresultitems.pro index 30eb0cb..790e88b 100644 --- a/tests/auto/qxmlresultitems/qxmlresultitems.pro +++ b/tests/auto/qxmlresultitems/qxmlresultitems.pro @@ -4,3 +4,4 @@ QT += testlib SOURCES += tst_qxmlresultitems.cpp include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlschema/qxmlschema.pro b/tests/auto/qxmlschema/qxmlschema.pro index 2543a6c..f03ba91 100644 --- a/tests/auto/qxmlschema/qxmlschema.pro +++ b/tests/auto/qxmlschema/qxmlschema.pro @@ -4,3 +4,4 @@ SOURCES += tst_qxmlschema.cpp QT += network testlib include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlschemavalidator/qxmlschemavalidator.pro b/tests/auto/qxmlschemavalidator/qxmlschemavalidator.pro index 343fa73..bb1226f 100644 --- a/tests/auto/qxmlschemavalidator/qxmlschemavalidator.pro +++ b/tests/auto/qxmlschemavalidator/qxmlschemavalidator.pro @@ -4,3 +4,4 @@ SOURCES += tst_qxmlschemavalidator.cpp QT += network testlib include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlserializer/qxmlserializer.pro b/tests/auto/qxmlserializer/qxmlserializer.pro index a1e477b..8b13b8a 100644 --- a/tests/auto/qxmlserializer/qxmlserializer.pro +++ b/tests/auto/qxmlserializer/qxmlserializer.pro @@ -4,3 +4,4 @@ QT += testlib SOURCES += tst_qxmlserializer.cpp include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/xmlpatterns/xmlpatterns.pro b/tests/auto/xmlpatterns/xmlpatterns.pro index 64aa794..93f905a 100644 --- a/tests/auto/xmlpatterns/xmlpatterns.pro +++ b/tests/auto/xmlpatterns/xmlpatterns.pro @@ -5,3 +5,4 @@ SOURCES += tst_xmlpatterns.cpp \ ../qxmlquery/TestFundament.cpp include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/xmlpatternsdiagnosticsts/xmlpatternsdiagnosticsts.pro b/tests/auto/xmlpatternsdiagnosticsts/xmlpatternsdiagnosticsts.pro index 2e858a0..b534495 100644 --- a/tests/auto/xmlpatternsdiagnosticsts/xmlpatternsdiagnosticsts.pro +++ b/tests/auto/xmlpatternsdiagnosticsts/xmlpatternsdiagnosticsts.pro @@ -24,3 +24,4 @@ wince* { catalog.path = . DEPLOYMENT += catalog } +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/xmlpatternsschema/xmlpatternsschema.pro b/tests/auto/xmlpatternsschema/xmlpatternsschema.pro index 19f738f..2823936 100644 --- a/tests/auto/xmlpatternsschema/xmlpatternsschema.pro +++ b/tests/auto/xmlpatternsschema/xmlpatternsschema.pro @@ -8,3 +8,4 @@ SOURCES += tst_xmlpatternsschema.cpp \ include (../xmlpatterns.pri) INCLUDEPATH += $$QT.xmlpatterns.private_includes +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/xmlpatternsschemats/xmlpatternsschemats.pro b/tests/auto/xmlpatternsschemats/xmlpatternsschemats.pro index c4173e6..c9fe689 100644 --- a/tests/auto/xmlpatternsschemats/xmlpatternsschemats.pro +++ b/tests/auto/xmlpatternsschemats/xmlpatternsschemats.pro @@ -21,3 +21,4 @@ QT += xml testlib INCLUDEPATH += \ ../xmlpatternsxqts \ ../xmlpatternssdk +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/xmlpatternssdk/xmlpatternssdk.pro b/tests/auto/xmlpatternssdk/xmlpatternssdk.pro index 4ede97a..7f908fd 100644 --- a/tests/auto/xmlpatternssdk/xmlpatternssdk.pro +++ b/tests/auto/xmlpatternssdk/xmlpatternssdk.pro @@ -83,3 +83,4 @@ SOURCES = ASTItem.cpp \ XSDTestSuiteHandler.cpp \ XSDTSTestCase.cpp \ XSLTTestSuiteHandler.cpp +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/xmlpatternsvalidator/xmlpatternsvalidator.pro b/tests/auto/xmlpatternsvalidator/xmlpatternsvalidator.pro index 55c4ec0..216cbea 100644 --- a/tests/auto/xmlpatternsvalidator/xmlpatternsvalidator.pro +++ b/tests/auto/xmlpatternsvalidator/xmlpatternsvalidator.pro @@ -5,3 +5,4 @@ SOURCES += tst_xmlpatternsvalidator.cpp \ ../qxmlquery/TestFundament.cpp include (../xmlpatterns.pri) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/xmlpatternsview/view/view.pro b/tests/auto/xmlpatternsview/view/view.pro index 31ca97c..2b87d91 100644 --- a/tests/auto/xmlpatternsview/view/view.pro +++ b/tests/auto/xmlpatternsview/view/view.pro @@ -33,3 +33,4 @@ FORMS = ui_BaseLinePage.ui \ ui_FunctionSignaturesView.ui INCLUDEPATH += ../../xmlpatternsxqts/lib +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/xmlpatternsview/xmlpatternsview.pro b/tests/auto/xmlpatternsview/xmlpatternsview.pro index 2fd12ab..c5ae493 100644 --- a/tests/auto/xmlpatternsview/xmlpatternsview.pro +++ b/tests/auto/xmlpatternsview/xmlpatternsview.pro @@ -11,3 +11,4 @@ wince*: { viewexe.path = . DEPLOYMENT += viewexe } +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro b/tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro index b752abe..f6d492e 100644 --- a/tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro +++ b/tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro @@ -16,3 +16,4 @@ INCLUDEPATH += $$(QTDIR)/include/QtXmlPatterns/private \ QT += xml testlib TARGET = tst_xmlpatternsxqts +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/xmlpatternsxslts/xmlpatternsxslts.pro b/tests/auto/xmlpatternsxslts/xmlpatternsxslts.pro index f9dc1c2..3df3d78 100644 --- a/tests/auto/xmlpatternsxslts/xmlpatternsxslts.pro +++ b/tests/auto/xmlpatternsxslts/xmlpatternsxslts.pro @@ -23,3 +23,4 @@ wince*: { } requires(contains(QT_CONFIG,private_tests)) +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 |