Closed GoogleCodeExporter closed 9 years ago
from your crawl:
6 GTMTest 0x0000863e -[ExerciseTest testSave] + 1122
(ExerciseTest.m:104)
check the string you are printing, it looks like there might be a problem
between your format string and the args
passed.
Original comment by thoma...@gmail.com
on 8 May 2009 at 4:06
Interesting. That line is a call to STAssertNil, put in to make sure the
framework was wired up correctly. Is it just
me or is it surprising that a bad format string/args combination (in this case
[NSString stringWithFormat:@"%@",
error]) would cause the dump?
Original comment by adam.str...@gmail.com
on 8 May 2009 at 4:41
It depends on what error is. As with any printf style call, if you mix things
up, the compiler will cast things into
completely wrong times and act on them.
Original comment by thoma...@gmail.com
on 8 May 2009 at 5:13
Actually, are you saying you did:
STAssertNil(something, [NSString stringWithFormat:@"%@", error])?
if so, think about what happens if the string generated from your call includes
a percent sign. The STAssert
calls already end in format strings, so you just need:
STAssertNil(something, @"error was: %@", error)
Original comment by thoma...@gmail.com
on 8 May 2009 at 5:15
Adam - any update?
Original comment by thoma...@gmail.com
on 2 Jun 2009 at 2:37
Resolved
Original comment by adam.str...@gmail.com
on 24 Jun 2009 at 6:25
Original comment by dmaclach
on 24 Jun 2009 at 8:10
Original issue reported on code.google.com by
adam.str...@gmail.com
on 8 May 2009 at 3:15Attachments: