Skip to content

Commit 355dfa1

Browse files
committed
Fix tests on iOS ARMv7
1 parent 4896bed commit 355dfa1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

objc2/src/declare.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -566,11 +566,8 @@ mod tests {
566566
let superclass = test_utils::custom_class();
567567
let builder = ClassBuilder::new("TestFetchWhileCreatingClass", superclass).unwrap();
568568

569-
if cfg!(all(
570-
feature = "apple",
571-
not(all(target_os = "macos", target_arch = "x86"))
572-
)) {
573-
// It is IMO a bug in Apple's new runtime that it is present here
569+
if cfg!(all(feature = "apple", target_arch = "x86_64")) {
570+
// It is IMO a bug that it is present here!
574571
assert!(is_present(builder.cls.as_ptr()));
575572
} else {
576573
assert!(!is_present(builder.cls.as_ptr()));

0 commit comments

Comments
 (0)