From 01b882dad6f7668ed0387147952b63399f97cf19 Mon Sep 17 00:00:00 2001 From: Dave MacLachlan Date: Thu, 8 Nov 2018 09:52:46 -0800 Subject: Fix up some broken tests. - Set up stack trace test just so we make sure we don't recurse. Right now it is too tight and breaks on every system release. - SQLite's behavior is actually undefined in the case of sqlite3_errcode, so don't depend on it in a test. --- Foundation/GTMStackTraceTest.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Foundation/GTMStackTraceTest.m') diff --git a/Foundation/GTMStackTraceTest.m b/Foundation/GTMStackTraceTest.m index 956385b..bc15300 100644 --- a/Foundation/GTMStackTraceTest.m +++ b/Foundation/GTMStackTraceTest.m @@ -38,8 +38,8 @@ XCTAssertGreaterThan([stacklines count], (NSUInteger)3, @"stack trace must have > 3 lines"); - XCTAssertLessThan([stacklines count], (NSUInteger)37, - @"stack trace must have < 37 lines"); + XCTAssertLessThan([stacklines count], (NSUInteger)100, + @"stack trace must have < 100 lines"); NSString *firstFrame = [stacklines objectAtIndex:0]; NSRange range = [firstFrame rangeOfString:@"testStackTraceBasic"]; @@ -103,8 +103,8 @@ XCTAssertGreaterThan([stacklines count], (NSUInteger)4, @"stack trace must have > 4 lines\n%@", stacktrace); - XCTAssertLessThan([stacklines count], (NSUInteger)41, - @"stack trace must have < 41 lines\n%@", stacktrace); + XCTAssertLessThan([stacklines count], (NSUInteger)100, + @"stack trace must have < 100 lines\n%@", stacktrace); XCTAssertEqual([stacklines count], [[exception callStackReturnAddresses] count], @"stack trace should have the same number of lines as the " -- cgit v1.2.3