Overview
| Comment: | Fix missing autoreleases in OFBlockTests.m. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | 0.5 |
| Files: | files | file ages | folders |
| SHA3-256: |
47611ea8718dc3581b461327d13eb827 |
| User & Date: | js on 2011-07-14 23:15:26 |
| Other Links: | branch diff | manifest | tags |
Context
|
2011-07-14
| ||
| 23:17 | Fix a memory leak in OFURL. (check-in: 971f8e1b0e user: js tags: 0.5) | |
| 23:15 | Fix missing autoreleases in OFBlockTests.m. (check-in: 47611ea871 user: js tags: 0.5) | |
| 23:06 | Fix reference counting for blocks. (check-in: 66be98f1d1 user: js tags: 0.5) | |
Changes
Modified tests/OFBlockTests.m from [9383a4bb50] to [10c79b74fc].
| ︙ | ︙ | |||
57 58 59 60 61 62 63 |
(Class)&_NSConcreteGlobalBlock == objc_getClass("OFGlobalBlock") &&
[g isKindOfClass: [OFBlock class]])
TEST(@"Class of a malloc block",
(Class)&_NSConcreteMallocBlock == objc_getClass("OFMallocBlock"))
TEST(@"Copying a stack block",
| > | | | | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
(Class)&_NSConcreteGlobalBlock == objc_getClass("OFGlobalBlock") &&
[g isKindOfClass: [OFBlock class]])
TEST(@"Class of a malloc block",
(Class)&_NSConcreteMallocBlock == objc_getClass("OFMallocBlock"))
TEST(@"Copying a stack block",
(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] autorelease] && [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]))
[pool drain];
}
@end
|
Modified tests/TestsAppDelegate.h from [04f3a2b803] to [75ac14eddf].
| ︙ | ︙ | |||
38 39 40 41 42 43 44 |
[self outputTesting: test \
inModule: module]; \
\
@try { \
code; \
} @catch (exception *e) { \
caught = YES; \
| | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
[self outputTesting: test \
inModule: module]; \
\
@try { \
code; \
} @catch (exception *e) { \
caught = YES; \
[e release]; \
} \
\
if (caught) \
[self outputSuccess: test \
inModule: module]; \
else { \
[self outputFailure: test \
|
| ︙ | ︙ |