Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bamx23 committed Aug 25, 2024
1 parent 4f94889 commit ab09d4e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/KSCrashRecordingTests/KSCrashConfiguration_Tests.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ - (void)testInitializationDefaults
XCTAssertFalse(config.addConsoleLogToReport);
XCTAssertFalse(config.printPreviousLogOnStartup);
XCTAssertEqual(config.maxReportCount, 5);
XCTAssertFalse(config.enableSwapCxaThrow);
XCTAssertTrue(config.enableSwapCxaThrow);
XCTAssertEqual(config.deleteBehaviorAfterSendAll, KSCDeleteAlways);
}

Expand All @@ -64,7 +64,7 @@ - (void)testToCConfiguration
config.addConsoleLogToReport = YES;
config.printPreviousLogOnStartup = YES;
config.maxReportCount = 10;
config.enableSwapCxaThrow = YES;
config.enableSwapCxaThrow = NO;

KSCrashCConfiguration cConfig = [config toCConfiguration];

Expand All @@ -80,7 +80,7 @@ - (void)testToCConfiguration
XCTAssertTrue(cConfig.addConsoleLogToReport);
XCTAssertTrue(cConfig.printPreviousLogOnStartup);
XCTAssertEqual(cConfig.maxReportCount, 10);
XCTAssertTrue(cConfig.enableSwapCxaThrow);
XCTAssertFalse(cConfig.enableSwapCxaThrow);

// Free memory allocated for C string array
for (int i = 0; i < cConfig.doNotIntrospectClasses.length; i++) {
Expand All @@ -102,7 +102,7 @@ - (void)testCopyWithZone
config.addConsoleLogToReport = YES;
config.printPreviousLogOnStartup = YES;
config.maxReportCount = 10;
config.enableSwapCxaThrow = YES;
config.enableSwapCxaThrow = NO;

KSCrashConfiguration *copy = [config copy];

Expand All @@ -115,7 +115,7 @@ - (void)testCopyWithZone
XCTAssertTrue(copy.addConsoleLogToReport);
XCTAssertTrue(copy.printPreviousLogOnStartup);
XCTAssertEqual(copy.maxReportCount, 10);
XCTAssertTrue(copy.enableSwapCxaThrow);
XCTAssertFalse(copy.enableSwapCxaThrow);
XCTAssertEqual(copy.deleteBehaviorAfterSendAll, KSCDeleteAlways);
}

Expand Down

0 comments on commit ab09d4e

Please sign in to comment.