Skip to content

Commit 0ea548a

Browse files
committed
Auto merge of #2209 - JohnTitor:macos-test-fix, r=Amanieu
Ignore `VM_FLAGS_*` consts on macOS tests Closes #2183
2 parents af64038 + 3d93992 commit 0ea548a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libc-test/build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,16 @@ fn test_apple(target: &str) {
273273
});
274274

275275
cfg.skip_const(move |name| {
276+
// They're declared via `deprecated_mach` and we don't support it anymore.
277+
if name.starts_with("VM_FLAGS_") {
278+
return true;
279+
}
276280
match name {
277281
// These OSX constants are removed in Sierra.
278282
// https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
279283
"KERN_KDENABLE_BG_TRACE" | "KERN_KDDISABLE_BG_TRACE" => true,
280284
// FIXME: the value has been changed since Catalina (0xffff0000 -> 0x3fff0000).
281285
"SF_SETTABLE" => true,
282-
// FIXME: the value has been changed since Catalina (VM_FLAGS_RESILIENT_MEDIA is also contained now).
283-
"VM_FLAGS_USER_REMAP" => true,
284286
// FIXME: the values have been changed since Big Sur
285287
"HW_TARGET" | "HW_PRODUCT" | "HW_MAXID" => true,
286288
_ => false,

0 commit comments

Comments
 (0)