summaryrefslogtreecommitdiffstats
path: root/tests/auto/xmlpatternsxqts
diff options
context:
space:
mode:
authorJakub Wieczorek <faw217@gmail.com>2010-05-10 09:02:37 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-05-10 09:02:37 (GMT)
commit346215c3d9f0be621a833e7c735501504c7aa0b0 (patch)
tree44683318f326f90294e2c10348b695dc4873e1d1 /tests/auto/xmlpatternsxqts
parent8439cd1c1343d0248588c8f072e0056bb266f14f (diff)
downloadQt-346215c3d9f0be621a833e7c735501504c7aa0b0.zip
Qt-346215c3d9f0be621a833e7c735501504c7aa0b0.tar.gz
Qt-346215c3d9f0be621a833e7c735501504c7aa0b0.tar.bz2
tst_SuiteTest: Fix a meaningless switch statement
The switch statement, that specifies which test handler should be used to run a test suite was missing break; statements, which made it always fall back to the XML Schema test suite. Merge-request: 619 Reviewed-by: Benjamin Poulain <benjamin.poulain@nokia.com>
Diffstat (limited to 'tests/auto/xmlpatternsxqts')
-rw-r--r--tests/auto/xmlpatternsxqts/tst_suitetest.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/auto/xmlpatternsxqts/tst_suitetest.cpp b/tests/auto/xmlpatternsxqts/tst_suitetest.cpp
index 64120c7..ec63858 100644
--- a/tests/auto/xmlpatternsxqts/tst_suitetest.cpp
+++ b/tests/auto/xmlpatternsxqts/tst_suitetest.cpp
@@ -89,10 +89,17 @@ void tst_SuiteTest::runTestSuite() const
TestSuite::SuiteType suiteType;
switch (m_suiteType) {
- case XQuerySuite: suiteType = TestSuite::XQuerySuite;
- case XsltSuite: suiteType = TestSuite::XsltSuite;
- case XsdSuite: suiteType = TestSuite::XsdSuite;
- default: break;
+ case XQuerySuite:
+ suiteType = TestSuite::XQuerySuite;
+ break;
+ case XsltSuite:
+ suiteType = TestSuite::XsltSuite;
+ break;
+ case XsdSuite:
+ suiteType = TestSuite::XsdSuite;
+ break;
+ default:
+ break;
}
TestSuite *const ts = TestSuite::openCatalog(catalogPath, errMsg, true, suiteType);