From 32d00b320d12706ead14baad04f11cec2823df77 Mon Sep 17 00:00:00 2001 From: "thomasvl@gmail.com" Date: Sun, 1 Mar 2009 21:46:23 +0000 Subject: http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=15 - Check bugfix before derefing it (bug, was checking major). - Add to the unittest to fetch each one individually. --- Foundation/GTMSystemVersionTest.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Foundation/GTMSystemVersionTest.m') diff --git a/Foundation/GTMSystemVersionTest.m b/Foundation/GTMSystemVersionTest.m index b6952da..24e6aa5 100644 --- a/Foundation/GTMSystemVersionTest.m +++ b/Foundation/GTMSystemVersionTest.m @@ -28,7 +28,10 @@ SInt32 minor; SInt32 bugFix; - [GTMSystemVersion getMajor:nil minor:nil bugFix:nil]; + [GTMSystemVersion getMajor:NULL minor:NULL bugFix:NULL]; + [GTMSystemVersion getMajor:&major minor:NULL bugFix:NULL]; + [GTMSystemVersion getMajor:NULL minor:&minor bugFix:NULL]; + [GTMSystemVersion getMajor:NULL minor:NULL bugFix:&bugFix]; [GTMSystemVersion getMajor:&major minor:&minor bugFix:&bugFix]; #if GTM_IPHONE_SDK STAssertTrue(major >= 2 && minor >= 0 && bugFix >= 0, nil); -- cgit v1.2.3