mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
LiblinphoneTester: try catch
This commit is contained in:
parent
bf82e2d5a9
commit
4eabafc62f
1 changed files with 6 additions and 1 deletions
|
|
@ -195,7 +195,12 @@ static NSString *const kAllTestsName = @"Run All tests";
|
|||
if ([test.name isEqualToString:kAllTestsName]) {
|
||||
testName = nil;
|
||||
}
|
||||
BOOL fail = bc_tester_run_tests([testSuite UTF8String], [testName UTF8String], NULL);
|
||||
BOOL fail = NO;
|
||||
@try {
|
||||
fail = bc_tester_run_tests([testSuite UTF8String], [testName UTF8String], NULL);
|
||||
} @catch (NSException *e) {
|
||||
fail = YES;
|
||||
}
|
||||
if (fail) {
|
||||
LOGW(@"Test Failed!");
|
||||
test.state = TestStateFailed;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue