Test errors while building

Topics: General
Apr 14, 2012 at 11:03 PM

I'm having some test errors while build the latest commit (a0b7fe4a95fa29a273b66c6273ee7430ba454754).

The latest errors are

C:\Users\pedro\code\cli\aspnetwebstack2\tools\WebStack.xunit.targets(12,9): error : System.Json.JsonPrimitiveTests.ReadAsFromStringTests: Assert.True() FailureC:\Users\pedro\code\cli\aspnetwebstack2\tools\WebStack.xunit.targets(12,9): error :    at System.Json.JsonPrimitiveTests.TestReadAsFromStringRoundtrip[T](T value, String valueString) in c:\Users\pedro\code\cli\aspnetwebstack2\test\System.Json.Test.Integration\JsonPrimitiveTests.cs:line 1065C:\Users\pedro\code\cli\aspnetwebstack2\tools\WebStack.xunit.targets(12,9): error :    at System.Json.JsonPrimitiveTests.ReadAsFromStringTests() in c:\Users\pedro\code\cli\aspnetwebstack2\test\System.Json.Test.Integration\JsonPrimitiveTests.cs:line 590

I'm running on a box with .NET 4 (never had 4.5), I've uninstalled ASP.NET MVC Beta, run "skipstrongnames -e", run "build restorepackages" and "run build".

I'm using git version 1.7.2.3.msysgit.0 on a command line.

Thanks

Pedro

Apr 14, 2012 at 11:47 PM

Some more info:

One of the tests that fails is JsonPrimitiveTests.ReadAsFromStringTests(), namely on the method called from line 590

TestReadAsFromStringRoundtrip<DateTime>(dateTime, dateTimeOffset.ToUniversalTime().ToString(@"ddd, d MMM yyyy HH:mm:ss \U\T\C"));

Since my current culture is "pt-PT", then the string produced by dateTimeOffset.ToUniversalTime().ToString(@"ddd, d MMM yyyy HH:mm:ss \U\T\C") is in Portuguese, which cannot be read correctly using CultureInfo.InvariantCulture

Pedro