Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Diff: TestManager.cpp
- Revision:
- 35:6867af70c51c
- Parent:
- 33:16126e029d58
- Child:
- 36:dd730ff4962e
- Child:
- 37:847f5f86e9ff
--- a/TestManager.cpp Thu Sep 13 10:14:49 2012 +0000 +++ b/TestManager.cpp Thu Sep 13 12:17:18 2012 +0000 @@ -9,17 +9,17 @@ TestManager::TestManager(VodafoneUSBModem *m) : _modem(m) { // using direct array indexing instead of searching each time // dummy tests are inserted by the addTest function - addTest((VodafoneTestCase*)new Test10(_modem)); - addTest((VodafoneTestCase*)new Test12(_modem)); - addTest((VodafoneTestCase*)new Test13(_modem)); - addTest((VodafoneTestCase*)new Test16(_modem)); - addTest((VodafoneTestCase*)new Test21(_modem)); - addTest((VodafoneTestCase*)new Test22(_modem)); - addTest((VodafoneTestCase*)new Test23(_modem)); - addTest((VodafoneTestCase*)new Test25(_modem)); - addTest((VodafoneTestCase*)new Test26(_modem)); - addTest((VodafoneTestCase*)new Test50(_modem)); - addTest((VodafoneTestCase*)new Test56(_modem)); + _tests.push_back((VodafoneTestCase*)new Test10(m)); + addTest((VodafoneTestCase*)new Test12(m)); + addTest((VodafoneTestCase*)new Test13(m)); + addTest((VodafoneTestCase*)new Test16(m)); + addTest((VodafoneTestCase*)new Test21(m)); + addTest((VodafoneTestCase*)new Test22(m)); + addTest((VodafoneTestCase*)new Test23(m)); + addTest((VodafoneTestCase*)new Test25(m)); + addTest((VodafoneTestCase*)new Test26(m)); + addTest((VodafoneTestCase*)new Test50(m)); + addTest((VodafoneTestCase*)new Test56(m)); } int TestManager::getTestProfileLength(TestProfile profile) { @@ -47,7 +47,6 @@ } void TestManager::listFailures(const int *list, const int listLen) { - int successfullTests = 0; for(int i=0; i<listLen; i++) { int testIndex = list[i]; VodafoneTestCase* test = getTest(testIndex);