We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5f28d9 commit c7e89fdCopy full SHA for c7e89fd
framework-crates/objc2-metal/tests/null_error_handling.rs
@@ -20,6 +20,10 @@ fn test() {
20
21
let metal_lib = unsafe { NSURL::URLWithString(ns_string!("file://missing.metallib")) }.unwrap();
22
let err = binary_archive.serializeToURL_error(&metal_lib).unwrap_err();
23
- assert_eq!(err.domain().to_string(), "__objc2.missingError");
24
- assert_eq!(err.code(), 0);
+ if err.domain().to_string() == "__objc2.missingError" {
+ assert_eq!(err.code(), 0);
25
+ } else {
26
+ // In macOS 15, the error is no longer NULL
27
+ assert!(err.domain().to_string() == "MTLBinaryArchiveDomain");
28
+ }
29
}
0 commit comments