[XM] Exclude NSPopover from apitest due to random crashes (#972)

This commit is contained in:
Chris Hamons 2016-10-11 03:04:43 -05:00 коммит произвёл Rolf Bjarne Kvinge
Родитель 69654f653f
Коммит b0606da28d
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -45,7 +45,7 @@ namespace Xamarin.Mac.Tests
// Walk all non abstract types, looking for things with zero param constructors
foreach (Type t in xamMac.GetTypes ().Where (t => !t.IsAbstract)) {
// Check availability attributes.
if (Asserts.SkipDueToAvailabilityAttribute (t) || skip (t))
if (Asserts.SkipDueToAvailabilityAttribute (t) || Skip (t))
continue;
var ctor = t.GetConstructor (BindingFlags.Instance | BindingFlags.Public, null, new Type[0], null);
@ -96,7 +96,7 @@ namespace Xamarin.Mac.Tests
}
}
bool skip (Type t)
bool Skip (Type t)
{
switch (t.Name) {
case "AVAssetResourceLoader":
@ -117,6 +117,7 @@ namespace Xamarin.Mac.Tests
case "SKScene":
case "NSSpeechRecognizer":
case "NSClickGestureRecognizer":
case "NSPopover":
// These classes don't do well when you instance them without support
return true;
case "SCNLayer":