[mobile_static] Don't try to use SIGKILL to get test stacktrace if Mono.Posix not...
[mono.git] / mono / tests / test-runner.cs
index 8a0d2a96a05a3a5671d84819c2ec813ecf23e1ea..cf9bf3351eb76d2a306b93717f1b687a27eec4ab 100644 (file)
@@ -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)");