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/GTMSQLiteTest.m | 3 --- 1 file changed, 3 deletions(-) (limited to 'Foundation/GTMSQLiteTest.m') diff --git a/Foundation/GTMSQLiteTest.m b/Foundation/GTMSQLiteTest.m index 2537dd6..adf687c 100644 --- a/Foundation/GTMSQLiteTest.m +++ b/Foundation/GTMSQLiteTest.m @@ -629,9 +629,6 @@ static void TestUpperLower16Impl(sqlite3_context *context, XCTAssertEqual(err, [db lastErrorCode], @"lastErrorCode API did not match what last API returned!"); - // Calling lastErrorCode resets API error, so the next string will not indicate any error - XCTAssertEqualStrings(@"unknown error", [db lastErrorString], - @"lastErrorString API did not match expected string!"); oneRow = [statement resultStringAtPosition:0]; XCTAssertEqualStrings(oneRow, @"a2", @"a did not come second!"); -- cgit v1.2.3