[Mono-dev] question about System.Web.Extensions unit tests

Atsushi Eno atsushi at ximian.com
Sun Jun 1 20:50:45 EDT 2008


Hello,

I have been seeing NUnit test failures in Sys.Web.Extensions. It keeps
the buildbot orange (warned), so today I checked the tests to see
what should be expected.

There I found that such lines that treats TARGET_JVM as different:

--------
#if TARGET_JVM
			Assert.AreEqual ("$create(My.Type, null, null,
{\"myName2\":\"myCompId2\",\"myName1\":\"myCompId1\"},
$get(\"Element1\"));", script);
#else
			Assert.AreEqual ("$create(My.Type, null, null,
{\"myName1\":\"myCompId1\",\"myName2\":\"myCompId2\"},
$get(\"Element1\"));", script);
#endif
--------

Though I see no reason to differentiate tests for GH. To my
understanding from our meeting at Mono summit 2006 time, Mainsoft
does not use #if TARGET_JVM without any reasonable differences,
so I would like to know the reason why there are such switches all
around the tests so that they can pass on GH while they will fail
on Mono, if any.

Actually when I ran make PROFILE=net_3_5 run-test-ondotnet, there
was no error report. So if those tests are rewritten, they will
fail on .NET.

If it is only about behavioral difference in generic Dictinary`2,
then those tests should not be conditionalized to legalize only in
TARGET_JVM and rewritten to fail only on .NET. (Who cares after all?)

Atsushi Eno


More information about the Mono-devel-list mailing list