Overview
| Comment: | Merge trunk into branch "objfwtest" |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | objfwtest |
| Files: | files | file ages | folders |
| SHA3-256: |
d365229b6e8244eec3452967c39f5e80 |
| User & Date: | js on 2024-02-10 14:16:19 |
| Other Links: | branch diff | manifest | tags |
Context
|
2024-02-10
| ||
| 14:48 | OFNumberTests: Fix type mismatch (check-in: 14bc00f118 user: js tags: objfwtest) | |
| 14:16 | Merge trunk into branch "objfwtest" (check-in: d365229b6e user: js tags: objfwtest) | |
| 14:16 | ObjFWTest: Make sure classes are initialized (check-in: f4bb3f5a76 user: js tags: trunk) | |
| 14:02 | Merge trunk into branch "objfwtest" (check-in: d47c2a18aa user: js tags: objfwtest) | |
Changes
Modified src/test/OTAppDelegate.m from [1f6282da2f] to [94d0e3c3f7].
| ︙ | ︙ | |||
46 47 48 49 50 51 52 |
if (classes == NULL)
return nil;
@try {
testClasses = [OFMutableSet set];
| | > > > > > > > > > > > > > | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
if (classes == NULL)
return nil;
@try {
testClasses = [OFMutableSet set];
for (Class *iter = classes; *iter != Nil; iter++) {
/*
* Make sure the class is initialized.
* Required for the ObjFW runtime, as otherwise
* class_getSuperclass() crashes.
*/
[*iter class];
/*
* Don't use +[isSubclassOfClass:], as the Apple runtime
* can return (presumably internal?) classes that don't
* implement it, resulting in a crash.
*/
if (isSubclassOfClass(*iter, [OTTestCase class]))
[testClasses addObject: *iter];
}
} @finally {
OFFreeMemory(classes);
}
[testClasses removeObject: [OTTestCase class]];
[testClasses makeImmutable];
|
| ︙ | ︙ |