aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMLoggerTest.m
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2011-11-29 21:00:23 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2011-11-29 21:00:23 +0000
commitc571385c00031d740b67317cb677cf193300f614 (patch)
treec6341b44aca37ddf037354f52ae81350352c8a19 /Foundation/GTMLoggerTest.m
parent5b52a35992f6bbd427eca4d419721e5354b0262d (diff)
[Author: thomasvl]
Move a bunch of tests over onto the GTM test base class. Fetch some test images from the bundle the test is compiled into instead of assuming main app. Change the default iOS logging directory to just be the documents directory since it should work for all iOS versions. Add initial support for using SenTestingKit instead of our custom version to allow the Xcode 4 UI for unittesting. Add a target for using SenTestingKit. Add a shell app for the TEST_HOST for SenTestingKit usage (since there are UI tests, we need to use a real app and not the octest binary). R=dmaclach DELTA=517 (482 added, 9 deleted, 26 changed)
Diffstat (limited to 'Foundation/GTMLoggerTest.m')
-rw-r--r--Foundation/GTMLoggerTest.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Foundation/GTMLoggerTest.m b/Foundation/GTMLoggerTest.m
index c0280e1..2211499 100644
--- a/Foundation/GTMLoggerTest.m
+++ b/Foundation/GTMLoggerTest.m
@@ -423,8 +423,9 @@
@"[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3} ((otest)|(otest-i386)|(otest-x86_64)|(otest-ppc))\\[[0-9]+/0x[0-9a-f]+\\] \\[lvl=[0-3]\\] \\(unknown\\) ";
#else // GTM_MACOS_SDK
// E.g. 2008-01-04 09:16:26.906 otest[5567/0xa07d0f60] [lvl=1] (no func) test
+ // 2011-11-29 12:32:24.129 GTMiPhoneUnitTestingOCUnitTestRig[31540/0xa04dd540] [lvl=1] (unknown) test
kFormatBasePattern =
- @"[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3} (GTMiPhoneTest)\\[[0-9]+/0x[0-9a-f]+\\] \\[lvl=[0-3]\\] \\(unknown\\) ";
+ @"[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3} (GTMiPhoneTest|GTMiPhoneUnitTestingOCUnitTestRig)\\[[0-9]+/0x[0-9a-f]+\\] \\[lvl=[0-3]\\] \\(unknown\\) ";
#endif // GTM_MACOS_SDK
NSString *msg = nil;