[tests] Fix introspection on macOS 12 (#12234)

This was fixed for iOS 15 but also happens on macOS 12 so the case
was moved into the common, shared test sources.
This commit is contained in:
Sebastien Pouliot 2021-07-26 20:23:12 -04:00 коммит произвёл GitHub
Родитель 149434de3e
Коммит b02f7c8e66
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -815,6 +815,18 @@ namespace Introspection {
break;
}
break;
case "MTLCommandBufferDescriptor":
switch (selectorName) {
case "errorOptions":
case "setErrorOptions:":
case "retainedReferences":
case "setRetainedReferences:":
// iOS 15 sim (and macOS 12) fails, API added in 14.0
if (TestRuntime.CheckXcodeVersion (13, 0))
return true;
break;
}
break;
}
// old binding mistake

Просмотреть файл

@ -352,18 +352,6 @@ namespace Introspection {
break;
}
break;
case "MTLCommandBufferDescriptor":
switch (name) {
case "errorOptions":
case "setErrorOptions:":
case "retainedReferences":
case "setRetainedReferences:":
// iOS 15 sim fails, API added in 14.0
if (TestRuntime.CheckXcodeVersion (13, 0))
return true;
break;
}
break;
#if __TVOS__ || __MACCATALYST__
// broken with Xcode 12 beta 1
case "CKDiscoveredUserInfo":