You've already forked linux-packaging-mono
Imported Upstream version 6.6.0.117
Former-commit-id: 021bb9d62cd1961fe87682869d5701da2629c45d
This commit is contained in:
parent
5ee9b766e6
commit
1d180a76cb
@@ -507,6 +507,10 @@ public class Tests : TestsBase, ITest2
|
||||
unhandled_exception_wrapper ();
|
||||
return 0;
|
||||
}
|
||||
if (args.Length >0 && args [0] == "unhandled-exception-perform-wait-callback") {
|
||||
unhandled_exception_perform_wait_callback ();
|
||||
return 0;
|
||||
}
|
||||
if (args.Length >0 && args [0] == "unhandled-exception-endinvoke") {
|
||||
unhandled_exception_endinvoke ();
|
||||
return 0;
|
||||
@@ -1649,6 +1653,24 @@ public class Tests : TestsBase, ITest2
|
||||
public static void unhandled_exception_endinvoke_2 () {
|
||||
}
|
||||
|
||||
[MethodImplAttribute (MethodImplOptions.NoInlining)]
|
||||
public static void unhandled_exception_perform_wait_callback () {
|
||||
try
|
||||
{
|
||||
var results = ResolveAsync().GetAwaiter().GetResult();
|
||||
}
|
||||
catch (SocketException sockEx)
|
||||
{
|
||||
//Console.WriteLine("correctly handled");
|
||||
}
|
||||
}
|
||||
|
||||
public static async Task<List<string>> ResolveAsync()
|
||||
{
|
||||
var addresses = await System.Net.Dns.GetHostAddressesAsync("foo.bar.baz");
|
||||
return new List<string>(addresses.Select(addr => addr.ToString()));
|
||||
}
|
||||
|
||||
[MethodImplAttribute (MethodImplOptions.NoInlining)]
|
||||
public static void unhandled_exception_endinvoke () {
|
||||
Action action = new Action (() =>
|
||||
|
||||
@@ -1 +1 @@
|
||||
ec003a04c422d9f2b5c359cfde61cd3a6b2f4b9a
|
||||
3556e02df5f76abfe1e39d3c328d2f73485811aa
|
||||
Reference in New Issue
Block a user