Skip to content

[Xcode12.5] Fix regression test not to crash. fixes #10918 - #10919

Merged
mandel-macaque merged 1 commit into
dotnet:xcode12.5from
mandel-macaque:fix-link-sdk
Mar 19, 2021
Merged

[Xcode12.5] Fix regression test not to crash. fixes #10918#10919
mandel-macaque merged 1 commit into
dotnet:xcode12.5from
mandel-macaque:fix-link-sdk

Conversation

@mandel-macaque

Copy link
Copy Markdown
Contributor

The api does not longer allow you to pass a null ptr. Create a dummy
controller:

fixes #10918

The api does not longer allow you to pass a null ptr. Create a dummy
controller:

fixes dotnet#10918
@mandel-macaque mandel-macaque added the not-notes-worthy Ignore for release notes label Mar 19, 2021
}
}
} No newline at end of file
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your editor does not like stories files that ends well...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or you want to make sure you always have the last word char in every file ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait! Rolf wants the new line! my editor might have made a decision this time that he should't, bad vim!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally your editor does not change anything you did not touch, including end-of-file.

Assert.IsNotNull (t.GetMethod ("UpdateSearchResultsForSearchController"), "preserved");
using (var controller = new UISplitViewController ()) {
var sc = new UISearchController ((UIViewController)controller);
sc.SetSearchResultsUpdater ((vc) => { });

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is not introduced here, but what does this syntax mean?
(vc) => { }

@mandel-macaque mandel-macaque Mar 19, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you look at the method, the first param is a Action<UIKit.UISearchController> updateSearchResults. The test is simply adding a lambda that takes a first param (viewController) and does nothing.
Could be:

Action<UIKit.UISearchController> cb = (vc) => {
    // your code goes here
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for explaining! :)

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

❌ Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

Test results

3 tests failed, 172 tests passed.

Failed tests

  • introspection/tvOS - simulator/Debug (tvOS 11.4): Failed
  • introspection/tvOS - simulator/Debug (tvOS 11.4) [dotnet]: Failed
  • introspection/watchOS 32-bits - simulator/Debug (watchOS 5.0): LaunchFailure

Pipeline on Agent XAMBOT-1109'

@mandel-macaque
mandel-macaque merged commit f7b208b into dotnet:xcode12.5 Mar 19, 2021
@mandel-macaque
mandel-macaque deleted the fix-link-sdk branch March 19, 2021 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not-notes-worthy Ignore for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants