Overview
Comment: | Add a test for weak references |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
171461008d6ae2fd9452f4e85a5425e3 |
User & Date: | js on 2020-11-12 00:37:03 |
Other Links: | manifest | tags |
References
2020-11-12
| ||
00:38 | • Fixed ticket [62fe928cfb]: Have tests for ARC plus 5 other changes artifact: 33d59fea39 user: js | |
Context
2020-11-14
| ||
12:23 | Rename of_malloc and of_calloc check-in: 627511b032 user: js tags: trunk | |
11:45 | Merge trunk into branch "amiga-library" check-in: 25a6c00b82 user: js tags: amiga-library | |
2020-11-12
| ||
00:45 | Merge trunk into 1.0 branch check-in: a1163fb58b user: js tags: 1.0 | |
00:37 | Add a test for weak references check-in: 171461008d user: js tags: trunk | |
00:32 | Fix weak references with the Apple runtime check-in: 4c16806252 user: js tags: trunk | |
Changes
Modified tests/RuntimeARCTests.m from [951f2e2edf] to [0ff145ce55].
︙ | |||
35 36 37 38 39 40 41 42 43 44 45 46 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | + + + + + + + + | } @end @implementation TestsAppDelegate (RuntimeARCTests) - (void)runtimeARCTests { id object; __weak id weak; EXPECT_EXCEPTION(@"Exceptions in init", OFException, object = [[RuntimeARCTest alloc] init]) object = [[OFObject alloc] init]; weak = object; TEST(@"weakly referencing an object", weak == object) object = nil; TEST(@"weak references becoming nil", weak == nil) } @end |