From 0a53e226313b2e89dd05272ea403994561067a78 Mon Sep 17 00:00:00 2001 From: Niklas Therning Date: Thu, 1 Dec 2016 13:55:29 +0100 Subject: [PATCH] Ensure the System.Web.UI.WebControls.RepeatInfo_Autogen test runs under en-US --- .../System.Web.UI.WebControls/RepeatInfoTest.auto.4.0.cs | 3 ++- .../Test/System.Web.UI.WebControls/RepeatInfoTest.gen.cs | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mcs/class/System.Web/Test/System.Web.UI.WebControls/RepeatInfoTest.auto.4.0.cs b/mcs/class/System.Web/Test/System.Web.UI.WebControls/RepeatInfoTest.auto.4.0.cs index a3772412270..968e5c214c5 100644 --- a/mcs/class/System.Web/Test/System.Web.UI.WebControls/RepeatInfoTest.auto.4.0.cs +++ b/mcs/class/System.Web/Test/System.Web.UI.WebControls/RepeatInfoTest.auto.4.0.cs @@ -1,7 +1,7 @@ // THIS IS AUTOGENERATED DO NOT EDIT // -// Generated on Microsoft .NET runtime v4.0.30319.1 +// Generated on Microsoft .NET runtime v4.0.30319.42000 // // Authors: // Ben Maurer (bmaurer@novell.com) @@ -42,6 +42,7 @@ using MonoTests.Helpers; namespace MonoTests.System.Web.UI.WebControls { [TestFixture] +[SetCulture ("en-us")] public class RepeatInfo_Autogen { [Test] diff --git a/mcs/class/System.Web/Test/System.Web.UI.WebControls/RepeatInfoTest.gen.cs b/mcs/class/System.Web/Test/System.Web.UI.WebControls/RepeatInfoTest.gen.cs index 4d87fce7d59..a06b3be9cd9 100644 --- a/mcs/class/System.Web/Test/System.Web.UI.WebControls/RepeatInfoTest.gen.cs +++ b/mcs/class/System.Web/Test/System.Web.UI.WebControls/RepeatInfoTest.gen.cs @@ -57,7 +57,6 @@ class X { static void Main () { - Console.WriteLine ("#if NET_4_0"); bool isMono = Type.GetType ("Mono.Runtime", false) != null; Console.WriteLine (@" @@ -104,6 +103,7 @@ using MonoTests.Helpers; namespace MonoTests.System.Web.UI.WebControls {{ [TestFixture] +[SetCulture (""en-us"")] public class RepeatInfo_Autogen {{ ", isMono ? "Mono" : "Microsoft .NET", Environment.Version); int num = 0; @@ -180,8 +180,7 @@ public class RepeatInfo_Autogen {{ } Console.WriteLine (@" } -} -#endif"); +}"); } static void BuildTestCode (StringBuilder sb, Exception ex, int cols, int cnt, RepeatDirection d, RepeatLayout l, bool oti, bool hdr, bool ftr, bool sep, string exp, int num) -- 2.25.1