Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Diff: Tests/Test07.h
- Revision:
- 73:effa8fcd45fc
- Parent:
- 72:0e8e769fcf76
--- a/Tests/Test07.h Fri Sep 20 12:36:03 2013 +0000 +++ b/Tests/Test07.h Fri Sep 20 14:18:05 2013 +0000 @@ -14,11 +14,13 @@ virtual bool executeTest() { LOG(gTest07Description); - _modem->sendUSSD(".2890",_ussdResponse,16); + if(_modem->sendUSSD(".2890",_ussdResponse,16)!=0) { + LOG("Expecting \"Unknown command\". Received USSD response: \"%s\"",_ussdResponse); + return true; + } - LOG("Expecting \"Unknown command\". Received USSD response: \"%s\"",_ussdResponse); - - return (strcmp(_ussdResponse,"Unknown command")==0); + LOG("Expected USSD command to fail."); + return false; } virtual void endTest() {