Skip to content

Commit

Permalink
[tests] Adjust DerivedEventTest to work in fully linked release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed May 4, 2023
1 parent ffa4b9e commit f5a1234
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/monotouch-test/AppKit/DerivedEventTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ void TestDelegates (NSComboBox b)
[Test]
public void DerivedEvents_OverwriteThrows ()
{
TestOverrideThrow (false, true);
TestOverrideThrow (true, true);
#if RELEASE
var checkTrimmedAway = TestRuntime.IsLinkAll;
#else
var checkTrimmedAway = false;
#endif
TestOverrideThrow (false, !checkTrimmedAway);
TestOverrideThrow (true, !checkTrimmedAway);
#if MONOMAC
NSApplication.CheckForEventAndDelegateMismatches = false;
#else
Expand Down

0 comments on commit f5a1234

Please sign in to comment.