File tree Expand file tree Collapse file tree 4 files changed +21
-11
lines changed Expand file tree Collapse file tree 4 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -39,18 +39,18 @@ jobs:
39
39
fail-fast : false
40
40
matrix :
41
41
include :
42
- - name : Test macOS 10.15
43
- os : macos-10.15
44
- target : x86_64-apple-darwin
45
42
- name : Test macOS 11
46
43
os : macos-11
47
44
target : x86_64-apple-darwin
45
+ - name : Test macOS 12
46
+ os : macos-12
47
+ target : x86_64-apple-darwin
48
48
- name : Build macOS AArch64
49
- os : macos-11
49
+ os : macos-latest
50
50
target : aarch64-apple-darwin
51
51
test-args : --no-run
52
52
- name : Test macOS old SDK
53
- os : macos-11
53
+ os : macos-latest
54
54
target : x86_64-apple-darwin
55
55
# Oldest macOS version we support
56
56
sdk : " 10.7"
62
62
# Run UI tests on nightly to help find regressions
63
63
ui : true
64
64
- name : Build macOS 32bit
65
- os : macos-10.15
65
+ os : macos-latest
66
66
target : i686-apple-darwin
67
67
rust :
68
68
toolchain : nightly
97
97
runtime : gnustep-1-9
98
98
libobjc2 : " 1.9"
99
99
- name : Test iOS simulator x86 64bit
100
- os : macos-11
100
+ os : macos-latest
101
101
target : x86_64-apple-ios
102
102
dinghy : true
103
103
- name : Build iOS simulator ARM64
Original file line number Diff line number Diff line change @@ -202,8 +202,18 @@ mod tests {
202
202
) ]
203
203
fn test_debug ( ) {
204
204
let thread = NSThread :: main ( ) ;
205
- let expected = format ! ( "<NSThread: {:p}>{{number = 1, name = (null)}}" , thread) ;
206
- assert_eq ! ( format!( "{:?}" , thread) , expected) ;
205
+
206
+ let actual = format ! ( "{:?}" , thread) ;
207
+ let expected_macos_11 = format ! ( "<NSThread: {:p}>{{number = 1, name = (null)}}" , thread) ;
208
+ let expected_macos_12 =
209
+ format ! ( "<_NSMainThread: {:p}>{{number = 1, name = (null)}}" , thread) ;
210
+ assert ! (
211
+ actual == expected_macos_11 || actual == expected_macos_12,
212
+ "Expected one of {:?} or {:?}, got {:?}" ,
213
+ expected_macos_11,
214
+ expected_macos_12,
215
+ actual,
216
+ ) ;
207
217
208
218
// SAFETY: We don't use the marker for anything other than its Debug
209
219
// impl, so this test doesn't actually need to run on the main thread!
Original file line number Diff line number Diff line change 81
81
id b;
82
82
void (*c)(void );
83
83
};
84
- ENCODING (STRUCT_WITH_BLOCK, struct with_block);
84
+ ENCODING_INNER (STRUCT_WITH_BLOCK, struct with_block); \
85
+ ENCODING_INNER (STRUCT_WITH_BLOCK_POINTER, struct with_block*); \
85
86
86
87
struct with_atomic_inner {
87
88
_Atomic int a;
Original file line number Diff line number Diff line change @@ -239,7 +239,6 @@ const WITH_BLOCK: Encoding<'static> = Encoding::Struct(
239
239
) ;
240
240
assert_inner ! ( str ENCODING_STRUCT_WITH_BLOCK => WITH_BLOCK ) ;
241
241
assert_inner ! ( str ENCODING_STRUCT_WITH_BLOCK_POINTER => Encoding :: Pointer ( & WITH_BLOCK ) ) ;
242
- assert_inner ! ( str ENCODING_STRUCT_WITH_BLOCK_ATOMIC => "A{with_block}" ) ;
243
242
244
243
assert_inner ! ( str ENCODING_STRUCT_WITH_ATOMIC => "{with_atomic=Ai^Ai{with_atomic_inner=Ai^Ai}^{with_atomic_inner}^A{with_atomic_inner}}" ) ;
245
244
assert_inner ! ( str ENCODING_STRUCT_WITH_ATOMIC_POINTER => "^{with_atomic=Ai^Ai{with_atomic_inner=Ai^Ai}^{with_atomic_inner}^A{with_atomic_inner}}" ) ;
You can’t perform that action at this time.
0 commit comments