Skip to content

Commit 90496ed

Browse files
committed
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...).
1 parent 25148af commit 90496ed

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

features/frameworks/utest/source/utest_harness.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ bool Harness::run(const Specification& specification)
144144
if (handlers->test_teardown) handlers->test_teardown(0, 0, failure);
145145
test_cases = NULL;
146146
exit(1);
147-
return true;
148147
}
149148

150149
notify_testcases();
@@ -159,7 +158,6 @@ bool Harness::run(const Specification& specification)
159158
if (handlers->test_teardown) handlers->test_teardown(0, 0, failure);
160159
test_cases = NULL;
161160
exit(1);
162-
return true;
163161
}
164162
return true;
165163
}

0 commit comments

Comments
 (0)