Merge pull request #4928 from kumpera/ptr_to_struct_intrinsic
[mono.git] / mcs / class / Mono.Posix / Test / Mono.Unix.Native / StdlibTest.cs
index e6743819a9db1905d721bf9b882b6216c30c74f2..e429af7f726cc3ade48060848ba35b91604988a5 100644 (file)
@@ -17,7 +17,7 @@ using Mono.Unix.Native;
 
 namespace MonoTests.Mono.Unix.Native {
 
-       [TestFixture]
+       [TestFixture, Category ("NotOnWindows")]
        public class StdlibTest
        {
                private class SignalTest {
@@ -30,14 +30,6 @@ namespace MonoTests.Mono.Unix.Native {
                }
 
                // [Test]
-#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 ()
                {
                        SignalTest st = new SignalTest ();
@@ -64,7 +56,7 @@ namespace MonoTests.Mono.Unix.Native {
                        Assert.IsFalse (NativeConvert.ToSignum (st.signalReceived) == Signum.SIGURG,
                                        "#IH: Signal Handler invoked when it should have been removed!");
                }
-
+#if !NETCOREAPP2_0
                [Test]
                // MSVCRT.DLL doesn't export snprintf(3).
                [Category ("NotDotNet")]
@@ -100,6 +92,7 @@ namespace MonoTests.Mono.Unix.Native {
                        Assert.AreEqual (s.ToString(), expected,
                                        "#SNPF: printf of many builtin types failed");
                }
+#endif
        }
 }