Refactored C++ test and added '+' sign as recognized character in auto-test description

pull/900/head
Przemek Wirkus 2015-01-28 09:08:58 +00:00
parent 4d435b94be
commit c6134eb6a2
2 changed files with 7 additions and 3 deletions

View File

@ -54,6 +54,11 @@ Heap::hello
Heap::destroy Heap::destroy
*******************/ *******************/
int main (void) { int main (void) {
TEST_TIMEOUT(10);
TEST_HOSTTEST(default_auto);
TEST_DESCRIPTION(C++);
TEST_START("MBED_12");
bool result = true; bool result = true;
for (;;) for (;;)
{ {
@ -77,6 +82,5 @@ int main (void) {
break; break;
} }
notify_completion(result); TEST_RESULT(result);
return 0;
} }

View File

@ -283,7 +283,7 @@ class Test(HostTestResults):
self.notify("HOST: Start test...") self.notify("HOST: Start test...")
break break
else: else:
m = re.search('{([\w_]+);([\w\d ]+)}}', line[:-1]) m = re.search('{([\w_]+);([\w\d\+ ]+)}}', line[:-1])
if m and len(m.groups()) == 2: if m and len(m.groups()) == 2:
result[m.group(1)] = m.group(2) result[m.group(1)] = m.group(2)
if verbose: if verbose: