projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove Thread.[Abort|Suspend|Resume] from TvOS/WatchOS.
[mono.git]
/
mcs
/
class
/
System
/
Test
/
System.Net
/
HttpListener2Test.cs
diff --git
a/mcs/class/System/Test/System.Net/HttpListener2Test.cs
b/mcs/class/System/Test/System.Net/HttpListener2Test.cs
index ab2901624e48fbb2e754d53d046ceb1fdadd0f3d..6e459b9d07896f0cf07b83e37b9dfdd9d2848656 100644
(file)
--- a/
mcs/class/System/Test/System.Net/HttpListener2Test.cs
+++ b/
mcs/class/System/Test/System.Net/HttpListener2Test.cs
@@
-341,7
+341,11
@@
namespace MonoTests.System.Net {
Thread thread = new Thread (ReadToEnd);
thread.Start ();
if (test_evt.WaitOne (3000, false) == false) {
+#if MONO_FEATURE_THREAD_ABORT
thread.Abort ();
+#else
+ thread.Interrupt ();
+#endif
test_evt.Close ();
Assert.IsTrue (false, "Timed out");
}