mirror of https://github.com/ARMmbed/mbed-os.git
UTEST - Fix warning by removing unreachable statement.
Some compiler will trigger warnings if code is located after the exit function because this function never returns (by the standard...).pull/2818/head
parent
25148af3a2
commit
90496ed5dc
|
|
@ -144,7 +144,6 @@ bool Harness::run(const Specification& specification)
|
|||
if (handlers->test_teardown) handlers->test_teardown(0, 0, failure);
|
||||
test_cases = NULL;
|
||||
exit(1);
|
||||
return true;
|
||||
}
|
||||
|
||||
notify_testcases();
|
||||
|
|
@ -159,7 +158,6 @@ bool Harness::run(const Specification& specification)
|
|||
if (handlers->test_teardown) handlers->test_teardown(0, 0, failure);
|
||||
test_cases = NULL;
|
||||
exit(1);
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue