mirror of https://github.com/ARMmbed/mbed-os.git
Refactored C++ test and added '+' sign as recognized character in auto-test description
parent
4d435b94be
commit
c6134eb6a2
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue