Differences From Artifact [10c79b74fc]:
- File tests/OFBlockTests.m — part of check-in [47611ea871] at 2011-07-14 23:15:26 on branch 0.5 — Fix missing autoreleases in OFBlockTests.m. (user: js, size: 2271) [annotate] [blame] [check-ins using] [more...]
To Artifact [0518f13692]:
- File
tests/OFBlockTests.m
— part of check-in
[7caa622124]
at
2011-07-18 03:01:36
on branch 0.5
— Fix reference counting for blocks.
Hopefully, there is no weird situation left where it fails... (user: js, size: 2257) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
64 65 66 67 68 69 70 | (m = [[s copy] autorelease]) && [m class] == objc_getClass("OFMallocBlock") && [m isKindOfClass: [OFBlock class]]) TEST(@"Copying a global block", (id)g == [[g copy] autorelease]) TEST(@"Copying a malloc block", | | | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | (m = [[s copy] autorelease]) && [m class] == objc_getClass("OFMallocBlock") && [m isKindOfClass: [OFBlock class]]) TEST(@"Copying a global block", (id)g == [[g copy] autorelease]) TEST(@"Copying a malloc block", (id)m == [m copy] && [m retainCount] == 2) TEST(@"Autorelease a stack block", R([s autorelease])) TEST(@"Autorelease a global block", R([g autorelease])) TEST(@"Autorelease a malloc block", R([m autorelease])) |
︙ | ︙ |