aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMLoggerTest.m
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-11-28 04:00:37 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-11-28 04:00:37 +0000
commit380899d5f740f36a2e0339c617bbb400e5bda04a (patch)
treefaab4f47324b811489071e585f4885884940170b /Foundation/GTMLoggerTest.m
parent5cadf77481727a70f7cf7925e641e9a46f546ed6 (diff)
[Author: thomasvl]
Update to some newer apis for the iPhone SDKs on the Xcode 3.2.x toolchain, the warnings don't happen on the 3.1.x tool chain. R=dmaclach DELTA=11 (8 added, 0 deleted, 3 changed)
Diffstat (limited to 'Foundation/GTMLoggerTest.m')
-rw-r--r--Foundation/GTMLoggerTest.m9
1 files changed, 7 insertions, 2 deletions
diff --git a/Foundation/GTMLoggerTest.m b/Foundation/GTMLoggerTest.m
index 2d6824a..0cd7dc7 100644
--- a/Foundation/GTMLoggerTest.m
+++ b/Foundation/GTMLoggerTest.m
@@ -295,7 +295,9 @@
[fh logMessage:@"test 4" level:kGTMLoggerLevelAssert];
[fh closeFile];
- NSString *contents = [NSString stringWithContentsOfFile:path_];
+ NSString *contents = [NSString stringWithContentsOfFile:path_
+ encoding:NSUTF8StringEncoding
+ error:nil];
STAssertEqualObjects(@"test 0\ntest 1\ntest 2\ntest 3\ntest 4\n", contents, nil);
}
@@ -458,7 +460,10 @@
[fh logMessage:@"test 6" level:kGTMLoggerLevelInfo];
[fh closeFile];
- NSString *contents = [NSString stringWithContentsOfFile:path_];
+ NSString *contents = [NSString stringWithContentsOfFile:path_
+ encoding:NSUTF8StringEncoding
+ error:NULL];
+
STAssertNotNil(contents, nil);
STAssertEqualObjects(@"test 1\ntest 2\ntest 3\ntest 4\ntest 5\ntest 6\n", contents, nil);
}