From: Alexander Kyte Date: Wed, 1 Jun 2016 18:04:33 +0000 (-0400) Subject: [mobile_static] Don't try to use SIGKILL to get test stacktrace if Mono.Posix not... X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=78d1c677d7e2d413d7786d2001395e1e7476034a;p=mono.git [mobile_static] Don't try to use SIGKILL to get test stacktrace if Mono.Posix not available --- diff --git a/mono/tests/test-runner.cs b/mono/tests/test-runner.cs index 8a0d2a96a05..cf9bf3351eb 100644 --- a/mono/tests/test-runner.cs +++ b/mono/tests/test-runner.cs @@ -17,7 +17,10 @@ using System.Collections.Generic; using System.Globalization; using System.Xml; using System.Text.RegularExpressions; + +#if !MOBILE_STATIC using Mono.Unix.Native; +#endif // // This is a simple test runner with support for parallel execution @@ -257,12 +260,14 @@ public class TestRunner timedout.Add (data); } +#if !MOBILE_STATIC // Force the process to print a thread dump try { Syscall.kill (p.Id, Signum.SIGQUIT); Thread.Sleep (1000); } catch { } +#endif output.Write ($"timed out ({timeout}s)");