[Mono-bugs] [Bug 401599] New: "CultureInfo.IsReadOnly" returns "TRUE" for " Referenced Assemblies" on Solaris SPARC
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jun 19 02:32:44 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=401599
Summary: "CultureInfo.IsReadOnly" returns "TRUE" for "Referenced
Assemblies" on Solaris SPARC
Product: Mono: Class Libraries
Version: 1.9.0
Platform: Sparc
OS/Version: Solaris 7
Status: NEW
Severity: Major
Priority: P5 - None
Component: CORLIB
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: avinash.ramesh at wipro.com
QAContact: mono-bugs at lists.ximian.com
Found By: Other
Test case Failure: Culture Info read-only property set to "TRUE" for the
"Referenced Assemblies". When the expected result was "FALSE"
Analysis:
While analyzing the failure of the
mono-1.9/mcs/class/corlib/System.Reflection/AssebmlyNameTest.cs..
1) Test Case failure at AssemblyNameTest.cs
2) Failure happens while checking whether the culture info of the referenced
assembly has the read-only property set as "False".
3) While trying to analyze we found out that, the culture info of all
referenced assemblies in our case, the referenced assemblies being "MSCORLIB",
"NUNIT.FRAMEWORK", returns the culture info read only property as True, because
of which the test case fails to execute.
When executing the same test case on the "Runtime 2.0" all the test cases
executes successfully without any failure.
Inference:
And while going through various links and stuffs we found a patch very close to
the above mentioned issue which is already applied to the source. Am including
the link here for your reference
https://bugzilla.novell.com/show_bug.cgi?id=347174#c17
We also figured out by searching on this issue and going through the mono
source that, the read only property by default is set to "FALSE", which in our
case is not happening for the referenced assemblies build and getting executed
on Solaris 7 SPARC platform.
bash-3.2# gmake run-test
TEST_HARNESS_FLAGS=/fixture=MonoTests.System.Reflection.AssemblyNameTest
ok=:; gmake run-test-recursive || ok=false; gmake run-test-local || ok=false;
$ok
gmake[1]: Entering directory `/mono_sol7/mono-1.9/mcs/class/corlib'
gmake[1]: Leaving directory `/mono_sol7/mono-1.9/mcs/class/corlib'
gmake[1]: Entering directory `/mono_sol7/mono-1.9/mcs/class/corlib'
MONO_PATH="../../class/lib/default:$MONO_PATH"
/mono_sol7/mono-1.9/runtime/mono-wrapper ../../class/lib/default/mcs.exe
/codepage:65001 -nowarn:169,612,618,649 -d:INSIDE_CORLIB -d:NET_1_1
-d:ONLY_1_1 -debug -target:library -out:corlib_test_default.dll
-r:../../class/lib/default/mscorlib.dll
-r:../../class/lib/default/nunit.framework.dll
-r:../../class/lib/default/nunit.core.dll
-r:../../class/lib/default/nunit.util.dll -debug+ -debug:full
-nowarn:168,219,618,672 -unsafe
@../../build/deps/corlib_test_default.dll.response
Test/System/BooleanTest.cs(79,33): warning CS1718: A comparison made to same
variable. Did you mean to compare something else?
Test/System/BooleanTest.cs(80,33): warning CS1718: A comparison made to same
variable. Did you mean to compare something else?
Test/System/BooleanTest.cs(86,35): warning CS1718: A comparison made to same
variable. Did you mean to compare something else?
Test/System/GuidTest.cs(150,40): warning CS1718: A comparison made to same
variable. Did you mean to compare something else?
Test/System/GuidTest.cs(162,41): warning CS1718: A comparison made to same
variable. Did you mean to compare something else?
Test/System/VersionTest.cs(170,40): warning CS1718: A comparison made to same
variable. Did you mean to compare something else?
Test/System.Reflection/EventInfoTest.cs(78,59): warning CS0067: The event
`MonoTests.System.Reflection.EventInfoTest.PrivateEvent.x' is never used
Test/System.Reflection/EventInfoTest.cs(83,58): warning CS0067: The event
`MonoTests.System.Reflection.EventInfoTest.PublicEvent.x' is never used
Compilation succeeded - 8 warning(s)
ok=:; \
MONO_REGISTRY_PATH="//.mono/registry"
MONO_PATH="../../class/lib/default::$MONO_PATH"
/mono_sol7/mono-1.9/runtime/mono-wrapper --debug
./../class/lib/default/nunit-console.exe
/fixture=MonoTests.System.Reflection.AssemblyNameTest
/exclude:NotWorking,ValueAdd,CAS,InetAccess /output:TestResult-default.log
/xml:TestResult-default.xml corlib_test_default.dll || ok=false; \
(echo ''; cat TestResult-default.log) | sed '1,/^Tests run: /d' ; $ok
NUnit version 2.2.0
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov,
Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.
OS Version: Unix 5.7.0.0 Mono Version: 1.1.4322.2032
Excluded categories: NotWorking,ValueAdd,CAS,InetAccess
........................F...........
Tests run: 36, Failures: 1, Not run: 0, Time: 3.894841 seconds
Failures:
1) MonoTests.System.Reflection.AssemblyNameTest.TestCultureInfo : #F2:mscorlib
at MonoTests.System.Reflection.AssemblyNameTest.TestCultureInfo () [0x002a7]
in
/mono_sol7/mono-1.9/mcs/class/corlib/Test/System.Reflection/AssemblyNameTest.cs:981
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[])
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x0003f] in
/mono_sol7/mono-1.9/mcs/class/corlib/System.Reflection/MonoMethod.cs:149
gmake[1]: *** [run-test-lib] Error 255
gmake[1]: Leaving directory `/mono_sol7/mono-1.9/mcs/class/corlib'
gmake: *** [do-run-test] Error 255
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list