[bcl] Remove NET_4_0 defines from class libs
[mono.git] / mcs / class / corlib / Test / System.Diagnostics / StackFrameTest.cs
index 0948663104623405a0fad4be3bf69b4951753438..4a94446c6a6cce793313f4f74dd811fc8fecac1c 100644 (file)
@@ -154,8 +154,12 @@ namespace MonoTests.System.Diagnostics
                }
 
                [Test]
+               [Category ("LLVMNotWorking")]
                public void TestGetFileName2 ()
                {
+#if MOBILE && !DEBUG
+                       Assert.Ignore ("The .mdb file won't be present inside the app and no file name will be available");
+#endif
                        Assert.IsNotNull (frame2.GetFileName (), "File name not null");
                        Assert.IsTrue (frame2.GetFileName ().Length != 0, "File name not empty");
                        Assert.IsTrue (frame2.GetFileName ().EndsWith ("StackFrameTest.cs"),
@@ -166,8 +170,12 @@ namespace MonoTests.System.Diagnostics
                /// Tests whether getting file line number works.
                /// </summary>
                [Test]
+               [Category ("LLVMNotWorking")]
                public void TestGetFileLineNumber ()
                {
+#if MOBILE && !DEBUG
+                       Assert.Ignore ("The .mdb file won't be present inside the app and no line number will be available");
+#endif
                        Assert.AreEqual (0,
                                                         frame1.GetFileLineNumber (),
                                                         "Line number (1)");
@@ -282,8 +290,12 @@ namespace MonoTests.System.Diagnostics
                /// Tests whether getting file name works.
                /// </summary>
                [Test]
+               [Category ("LLVMNotWorking")]
                public void TestGetFileName ()
                {
+#if MOBILE && !DEBUG
+                       Assert.Ignore ("The .mdb file won't be present inside the app and no file name will be available");
+#endif
                        Assert.IsNull (frame1.GetFileName (),
                                                   "File name (1)");
 
@@ -298,16 +310,17 @@ namespace MonoTests.System.Diagnostics
                ///   Tests whether getting file line number works.
                /// </summary>
                [Test]
-#if ONLY_1_1
-               [Category ("NotDotNet")] // .NET 1.1 is off by one
-#endif
+               [Category ("LLVMNotWorking")]
                public void TestGetFileLineNumber ()
                {
+#if MOBILE && !DEBUG
+                       Assert.Ignore ("The .mdb file won't be present inside the app and no line number will be available");
+#endif
                        Assert.AreEqual (0,
                                                         frame1.GetFileLineNumber (),
                                                         "Line number (1)");
 
-                       Assert.AreEqual (262,
+                       Assert.AreEqual (270,
                                                         frame2.GetFileLineNumber (),
                                                         "Line number (2)");
                }
@@ -316,9 +329,6 @@ namespace MonoTests.System.Diagnostics
                /// Tests whether getting file column number works.
                /// </summary>
                [Test]
-#if ONLY_1_1
-               [Category ("NotDotNet")] // .NET 1.1 is off by one
-#endif
                [Category ("NotWorking")] // bug #45730 - Column numbers always zero
                public void TestGetFileColumnNumber ()
                {