[apitest] Don't instantiate an AVCaptureView.

It may cause macOS to try to show a permission dialog, which fails because the
app is executed from a non-interactive session, and the end is terminated due
to a privacy violation (even if the app has all the required plist entries).
This commit is contained in:
Rolf Bjarne Kvinge 2019-06-26 14:09:45 +02:00
Родитель 0a3555fd36
Коммит 5dab3372ab
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -132,6 +132,9 @@ namespace Xamarin.Mac.Tests
break;
case "QTMovie":
return TestRuntime.CheckSystemVersion (PlatformName.MacOSX, 10, 14, 4); // Broke in macOS 10.14.4.
case "AVCaptureView":
// Deallocating a AVCaptureView makes it trigger a permission dialog, which we don't want, so just skip this type.
return true;
}
switch (t.Namespace) {