3 using System
.Diagnostics
;
6 public static int Main(string[] args
)
8 // Only run this test on Unix
9 int pl
= (int) Environment
.OSVersion
.Platform
;
10 if ((pl
!= 4) && (pl
!= 6) && (pl
!= 128)) {
14 // Try to invoke the helper assembly
15 // Return 0 only if it is successful
18 var name
= "bug-17537-helper.exe";
19 Console
.WriteLine ("Launching subprocess: {0}", name
);
20 var p
= new Process();
21 p
.StartInfo
.FileName
= Path
.Combine (AppDomain
.CurrentDomain
.BaseDirectory
+ name
);
22 p
.StartInfo
.UseShellExecute
= false;
24 var result
= p
.Start();
27 Console
.WriteLine ("Subprocess started successfully");
30 Console
.WriteLine ("Subprocess failure");
36 Console
.WriteLine ("Subprocess exception");
37 Console
.WriteLine (e
.Message
);