We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c16687 commit 22b2560Copy full SHA for 22b2560
crates/tests/src/exception.rs
@@ -42,9 +42,13 @@ fn throw_catch_raise_catch() {
42
43
let exc = NSException::from_exception(res.unwrap_err().unwrap()).unwrap();
44
45
- // Undesired: The inner pool _should_ have been drained on unwind, but
46
- // it isn't, see `rc::Pool::drain`.
47
- assert_eq!(exc.retainCount(), 2);
+ if cfg!(all(target_os = "macos", target_arch = "x86")) {
+ assert_eq!(exc.retainCount(), 1);
+ } else {
48
+ // Undesired: The inner pool _should_ have been drained on unwind,
49
+ // but it isn't in newer runtimes, see docs on `rc::Pool::drain`.
50
+ assert_eq!(exc.retainCount(), 2);
51
+ }
52
exc
53
});
54
0 commit comments