projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67a454f
)
[tests] Fix thread-native-exit test on windows
author
Ludovic Henry
<ludovic@xamarin.com>
Mon, 3 Oct 2016 17:19:25 +0000
(19:19 +0200)
committer
Ludovic Henry
<ludovic@xamarin.com>
Mon, 3 Oct 2016 20:25:51 +0000
(22:25 +0200)
mono/tests/thread-native-exit.cs
patch
|
blob
|
history
diff --git
a/mono/tests/thread-native-exit.cs
b/mono/tests/thread-native-exit.cs
index 16af9f66a7a56143f92ae0e5edaef17a50b4a803..e112be0fa16e46960bfafae3f5572c7bbd08bfb0 100644
(file)
--- a/
mono/tests/thread-native-exit.cs
+++ b/
mono/tests/thread-native-exit.cs
@@
-15,15
+15,10
@@
class Driver
{
return new Thread (() => {
/* Exit bypassing completely the runtime */
- try {
- pthread_exit (IntPtr.Zero);
- } catch (EntryPointNotFoundException) {
- }
-
- try {
- ExitThread (IntPtr.Zero);
- } catch (EntryPointNotFoundException) {
- }
+ if (Environment.OSVersion.Platform == PlatformID.Unix || Environment.OSVersion.Platform == PlatformID.MacOSX)
+ pthread_exit (IntPtr.Zero);
+ else
+ ExitThread (IntPtr.Zero);
});
}