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
Vincent Coubard 2016-09-26 17:05:03 +01:00
parent 25148af3a2
commit 90496ed5dc
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}