Differences From Artifact [0ba4bbb116]:
- File tests/OFBlockTests.m — part of check-in [10977992a8] at 2023-01-08 21:43:29 on branch trunk — OFBlockTests: Exclude miscompiled tests on Win32 (user: js, size: 3274) [annotate] [blame] [check-ins using] [more...]
To Artifact [1dba22b1d2]:
- File
tests/OFBlockTests.m
— part of check-in
[00b1d9d7b6]
at
2023-10-19 20:46:17
on branch trunk
— OFBlockTests: Also disable global blocks on Win64
While these work on the officially by ObjFW supported MSYS2/CLANG64
environment, they don't work on the similar environment provided by
Fedora in the ucrt64-gcc package when using
OBJC='clang -target x86_64-w64-mingw32ucrt', which is not officially
supported by ObjFW, but useful for testing purposes. (user: js, size: 3194) [annotate] [blame] [check-ins using] [more...]
︙ | |||
26 27 28 29 30 31 32 | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | - + | #elif defined(OF_APPLE_RUNTIME) extern void *_NSConcreteStackBlock; extern void *_NSConcreteGlobalBlock; extern void *_NSConcreteMallocBlock; #endif /* Clang on Win32 generates broken code that crashes for global blocks. */ |
︙ | |||
68 69 70 71 72 73 74 | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | - + - + - + | void (^mallocBlock)(void); int (^voidBlock)(void); TEST(@"Class of stack block", (Class)&_NSConcreteStackBlock == objc_getClass("OFStackBlock") && [stackBlock isKindOfClass: [OFBlock class]]) |