From eb030f647c066da594c612db4ba482612842361e Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Fri, 13 Mar 2009 04:30:22 +0000 Subject: [Author: dmaclach] Fixes up the leaks in the tests. Sets up the RunMacOSUnitTest script so that it actually works correctly with respect to enabling leaks. DELTA=20 (4 added, 3 deleted, 13 changed) R=thomasvl --- Foundation/GTMSQLiteTest.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Foundation/GTMSQLiteTest.m') diff --git a/Foundation/GTMSQLiteTest.m b/Foundation/GTMSQLiteTest.m index 493493a..5d683c0 100644 --- a/Foundation/GTMSQLiteTest.m +++ b/Foundation/GTMSQLiteTest.m @@ -1776,9 +1776,8 @@ static NSArray* LikeGlobTestHelper(GTMSQLiteDatabase *db, NSString *sql) { @"when statement is no longer needed"; [GTMUnitTestDevLog expectString:expectedLog]; - - STAssertThrows([localPool drain], - @"Failing to clean up database did not throw assertion!"); + [GTMUnitTestDevLog expectPattern:@"Unable to close .*"]; + [localPool drain]; } } -- cgit v1.2.3