[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bug #5057] TestDecimalParse test case broken by local
From: |
nobody |
Subject: |
[Pnet-developers] [bug #5057] TestDecimalParse test case broken by locale settings. |
Date: |
Wed, 03 Sep 2003 23:44:45 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 |
=================== BUG #5057: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5057&group_id=353
Changes by: Rhys Weatherley <address@hidden>
Date: Thu 09/04/2003 at 03:44 (GMT)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Fixed
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
I've modified the CVS version to force the locale to "C"
when running tests. You will need to re-run "./configure"
to get the change.
=================== BUG #5057: FULL BUG SNAPSHOT ===================
Submitted by: adrianpj Project: DotGNU Portable.NET
Submitted on: Wed 09/03/2003 at 18:14
Category: None Severity: 5 - Major
Bug Group: None Resolution: Fixed
Assigned to: None Status: Closed
Summary: TestDecimalParse test case broken by locale settings.
Original Submission: It seems locale is not taken into account in this test.
LC_ALL=es_ES
LANG=es_ES.ISO-8859-1
It works when LC_ALL=C and LANG=C
$ make check
Making check in runtime
make[1]: Entering directory `/rescue/dotGNU/src/pnetlib/tests/runtime'
"/rescue/dotGNU/bin/csant" --compiler cscc -Dcscc="/rescue/dotGNU/bin/cscc"
-Dcscc.plugins.cs="/rescue/dotGNU/lib/cscc/plugins/cscc-cs" --profile
"../../profiles/full" -f Testruntime.build all
Building project `pnetlib Testruntime'
Building target `all' for project `pnetlib Testruntime'
Leaving target `all' for project `pnetlib Testruntime'
Ending project `pnetlib Testruntime'
make check-TESTS
make[2]: Entering directory `/rescue/dotGNU/src/pnetlib/tests/runtime'
Suite: Runtime Tests
Suite: Core Class Tests
TestArrayBinarySearch ... ok
TestArrayClear ... ok
TestArrayCopy ... ok
TestArraySort ... ok
TestBooleanConstants ... ok
TestBooleanCompareTo ... ok
TestBooleanEquals ... ok
TestBooleanGetHashCode ... ok
TestBooleanParse ... ok
TestBooleanToString ... ok
TestBooleanIConvertible ... ok
TestDecimalParse ... threw exception: System.FormatException: The supplied
value did not have the correct format
at System.Private.NumberParser.ParseDecimal(String, NumberStyles,
NumberFormatInfo) in ./System/Private/NumberParser.cs:1099
at System.Decimal.Parse(String, NumberStyles, IFormatProvider) in
./System/Decimal.cs:327
at System.Decimal.Parse(String) in ./System/Decimal.cs:332
at TestDecimal.TestDecimalParse() in ./System/TestDecimal.cs:50
at System.Reflection.ClrMethod.Invoke(Object, BindingFlags, Binder,
Object[], CultureInfo)
at System.Reflection.MethodBase.Invoke(Object, Object[]) in
./System/Reflection/MethodBase.cs:58
at CSUnit.TestCase.RunTest() in ./TestCase.cs:104
at CSUnit.TestCase.Run(TestResult) in ./TestCase.cs:47
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestMain.Main(String[]) in ./TestMain.cs:247
TestDecimalToString ... failed: CSUnit.TestAssertFailed: Test failed: 1.13
expected: <1.13>, but was: <1,13>
at CSUnit.TestCase.Fail(String) in ./TestCase.cs:148
at CSUnit.TestCase.EqFail(String, Object, Object) in ./TestCase.cs:192
at CSUnit.TestCase.AssertEquals(String, String, String) in
./TestCase.cs:283
at TestDecimal.TestDecimalToString() in ./System/TestDecimal.cs:85
at System.Reflection.ClrMethod.Invoke(Object, BindingFlags, Binder,
Object[], CultureInfo)
at System.Reflection.MethodBase.Invoke(Object, Object[]) in
./System/Reflection/MethodBase.cs:58
at CSUnit.TestCase.RunTest() in ./TestCase.cs:104
at CSUnit.TestCase.Run(TestResult) in ./TestCase.cs:47
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestMain.Main(String[]) in ./TestMain.cs:247
TestDoubleParse ... ok
TestDoubleToString ... failed: CSUnit.TestAssertFailed: Test failed: 1.13
expected: <1.13>, but was: <1,13>
at CSUnit.TestCase.Fail(String) in ./TestCase.cs:148
at CSUnit.TestCase.EqFail(String, Object, Object) in ./TestCase.cs:192
at CSUnit.TestCase.AssertEquals(String, String, String) in
./TestCase.cs:283
at TestDouble.TestDoubleToString() in ./System/TestDouble.cs:85
at System.Reflection.ClrMethod.Invoke(Object, BindingFlags, Binder,
Object[], CultureInfo)
at System.Reflection.MethodBase.Invoke(Object, Object[]) in
./System/Reflection/MethodBase.cs:58
at CSUnit.TestCase.RunTest() in ./TestCase.cs:104
at CSUnit.TestCase.Run(TestResult) in ./TestCase.cs:47
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestMain.Main(String[]) in ./TestMain.cs:247
TestSByteParseString0 ... ok
[snipped]
Follow-up Comments
*******************
-------------------------------------------------------
Date: Thu 09/04/2003 at 03:44 By: rweather
I've modified the CVS version to force the locale to "C"
when running tests. You will need to re-run "./configure"
to get the change.
CC list is empty
No files currently attached
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5057&group_id=353
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/