Fix TimeZoneTest to build properly with new-style XI assemblies.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Sat, 24 May 2014 00:17:49 +0000 (02:17 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Sat, 24 May 2014 00:18:39 +0000 (02:18 +0200)
mcs/class/corlib/Test/System/TimeZoneTest.cs

index 8d90bb9f61c3308d8aa76fc93f11348a1306c4a8..930be4fefe24a891ab2081c1461bf8eb3c8c8cbe 100644 (file)
@@ -358,7 +358,11 @@ public class TimeZoneTest {
                                // now it fails on Snow Leopard the same way (incomplete data) with iOS5 simulator (OS update ?)
                                // but it *never*ever* failed on devices
                                incomplete_data_on_simulator_only_bug = true;
+#if XAMCORE_2_0
+                               if (ObjCRuntime.Runtime.Arch == ObjCRuntime.Arch.SIMULATOR)
+#else
                                if (MonoTouch.ObjCRuntime.Runtime.Arch == MonoTouch.ObjCRuntime.Arch.SIMULATOR)
+#endif
                                        Assert.Ignore ("known to fail on some iOS simulator versions - see source comments");
                        }
                }