Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque committed Oct 4, 2021
1 parent ba86323 commit 9ff5c7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions tests/monotouch-test/Metal/MTLDeviceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@ public void GetAllDevicesTest ()
TestRuntime.AssertXcodeVersion (13, 0);
#endif
NSObject refObj = new NSObject();
var devices = MTLDevice.GetAllDevices(ref refObj, (IMTLDevice device, NSString notifyName) => { });
var devices = MTLDevice.GetAllDevices();

// It's possible to run on a system that does not support metal,
// in which case we'll get an empty array of devices.
Assert.IsNotNull (devices, "MTLDevices.GetAllDevices not null");

Assert.DoesNotThrow (() => {
MTLDevice.RemoveObserver (refObj);
});
}

#endif

#if __MACOS__
[Test]
public void GetAllDevicesTestOutObserver ()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !__WATCHOS__
#if __IOS__ || __MACOS__
using Foundation;
using Metal;

Expand Down

0 comments on commit 9ff5c7a

Please sign in to comment.