+2005-02-09 Jonathan Pryor <jonpryor@vt.edu>
+
+ * StdlibTest.cs: Signal is currently ignored, but add Category(NotDotNet) so
+ it isn't run even when we fix it. .NET 1.1 doesn't marshal delegates
+ properly for signal (different calling conventions).
+ Add Category(NotDotNet) for Snprintf(), as MSVCRT.dll doesn't export it.
+ * UnixGroupTest.cs, UnixUserTest.cs: Don't run these under .NET, as Windows
+ doesn't support the Syscall and related classes.
+
2005-02-01 Raja R Harinath <rharinath@novell.com>
* UnixUserTest.cs (UnixUserTest.ReentrantConstructors): Don't
}
[Test, Ignore ("Sending Signals from inside Mono hangs the program")]
+#if !NET_2_0
+ // .NET 1.1 marshals delegates as Stdcall functions, while signal(3)
+ // expects a Cdecl function. Result: stack corruption.
+ // DO NOT USE Stdlib.signal under .NET 1.1!
+ // .NET 2.0 allows us to specify how delegates should be marshaled, so
+ // this isn't an issue there.
+ [Category ("NotDotNet")]
+#endif
public void Signal ()
{
- // Insert handler
SignalTest st = new SignalTest ();
+ // Make sure handler is JITed so we don't JIT from signal context
+ st.Handler (9);
+
+ // Insert handler
SignalHandler oh = Stdlib.signal (Signum.SIGUSR1,
new SignalHandler (st.Handler));
}
[Test]
+ // MSVCRT.DLL doesn't export snprintf(3).
+ [Category ("NotDotNet")]
public void Snprintf ()
{
StringBuilder s = new StringBuilder (1000);