Skip to content

System.Management.Tests Time bug #24716

@SemperPeritus

Description

@SemperPeritus

With UTC+7 Tomsk (automatic daylight time was turned off) I get error. System.Management.Tests works fine with UTC-8 and turned on automatic daylight time. Test passes after changing time back to UTC+7 without clean --all through build-tests. After clean --all, build and build-tests error appears again.

I am using Windows 10 x64 and VS 2017.

Part of the log:

C:\Users\plato\source\repos\corefx\Tools\tests.targets(500,5): error : One or more tests failed while running tests fro m 'System.Management.Tests' please check C:\Users\plato\source\repos\corefx\bin/tests/System.Management.Tests/netcoreap p-Windows_NT-Debug-x64/testResults.xml for details! [C:\Users\plato\source\repos\corefx\src\System.Management\tests\Sys tem.Management.Tests.csproj]

testResults.xml:

      <test name="System.Management.Tests.ManagementDateTimeConverterTests.DateTime_RoundTrip" type="System.Management.Tests.ManagementDateTimeConverterTests" method="DateTime_RoundTrip" time="0.0306261" result="Fail">
        <failure exception-type="Xunit.Sdk.EqualException">
          <message><![CDATA[Assert.Equal() Failure\r\nExpected: 2002-04-08T14:18:35.9780000Z\r\nActual:   2002-04-08T15:18:35.9780000Z]]></message>
          <stack-trace><![CDATA[   at System.Management.Tests.ManagementDateTimeConverterTests.DateTime_RoundTrip() in C:\Users\plato\source\repos\corefx\src\System.Management\tests\System\Management\ManagementDateTimeConverterTests.cs:line 18]]></stack-trace>
        </failure>
      </test>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions