runtime: Test failure: System.IO.Tests.DirectoryInfo_GetSetTimes/TimesIncludeMillisecondPart

Test passes on all Linux distros in CI: https://github.com/dotnet/corefx/pull/27559 Test fails on all Linux distros in official build.

Investigating whether build is exactly the same.

The test System.IO.Tests.DirectoryInfo_GetSetTimes/TimesIncludeMillisecondPart has failed.

Assert.All() Failure: 6 out of 6 items in the collection did not pass.
    [5]: Xunit.Sdk.NotEqualException: Assert.NotEqual() Failure
         Expected: Not 0
         Actual:   0
            at Xunit.Assert.NotEqual[T](T expected, T actual, IEqualityComparer`1 comparer)
            at System.IO.Tests.BaseGetSetTimes`1.<>c__DisplayClass8_0.<TimesIncludeMillisecondPart>b__0(TimeFunction function) in /root/corefx-1435242/src/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs:line 101
            at Xunit.Assert.All[T](IEnumerable`1 collection, Action`1 action)
    [4]: Xunit.Sdk.NotEqualException: Assert.NotEqual() Failure
         Expected: Not 0
         Actual:   0
            at Xunit.Assert.NotEqual[T](T expected, T actual, IEqualityComparer`1 comparer)
            at System.IO.Tests.BaseGetSetTimes`1.<>c__DisplayClass8_0.<TimesIncludeMillisecondPart>b__0(TimeFunction function) in /root/corefx-1435242/src/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs:line 101
            at Xunit.Assert.All[T](IEnumerable`1 collection, Action`1 action)
    [3]: Xunit.Sdk.NotEqualException: Assert.NotEqual() Failure
         Expected: Not 0
         Actual:   0
            at Xunit.Assert.NotEqual[T](T expected, T actual, IEqualityComparer`1 comparer)
            at System.IO.Tests.BaseGetSetTimes`1.<>c__DisplayClass8_0.<TimesIncludeMillisecondPart>b__0(TimeFunction function) in /root/corefx-1435242/src/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs:line 101
            at Xunit.Assert.All[T](IEnumerable`1 collection, Action`1 action)
    [2]: Xunit.Sdk.NotEqualException: Assert.NotEqual() Failure
         Expected: Not 0
         Actual:   0
            at Xunit.Assert.NotEqual[T](T expected, T actual, IEqualityComparer`1 comparer)
            at System.IO.Tests.BaseGetSetTimes`1.<>c__DisplayClass8_0.<TimesIncludeMillisecondPart>b__0(TimeFunction function) in /root/corefx-1435242/src/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs:line 101
            at Xunit.Assert.All[T](IEnumerable`1 collection, Action`1 action)
    [1]: Xunit.Sdk.NotEqualException: Assert.NotEqual() Failure
         Expected: Not 0
         Actual:   0
            at Xunit.Assert.NotEqual[T](T expected, T actual, IEqualityComparer`1 comparer)
            at System.IO.Tests.BaseGetSetTimes`1.<>c__DisplayClass8_0.<TimesIncludeMillisecondPart>b__0(TimeFunction function) in /root/corefx-1435242/src/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs:line 101
            at Xunit.Assert.All[T](IEnumerable`1 collection, Action`1 action)
    [0]: Xunit.Sdk.NotEqualException: Assert.NotEqual() Failure
         Expected: Not 0
         Actual:   0
            at Xunit.Assert.NotEqual[T](T expected, T actual, IEqualityComparer`1 comparer)
            at System.IO.Tests.BaseGetSetTimes`1.<>c__DisplayClass8_0.<TimesIncludeMillisecondPart>b__0(TimeFunction function) in /root/corefx-1435242/src/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs:line 101
            at Xunit.Assert.All[T](IEnumerable`1 collection, Action`1 action)

        Stack Trace:

        null
Build : Master - 20180302.04 (Core Tests)
Failing configurations:
- RedHat.69.Amd64-x64
  - Release
- Fedora.27.Amd64-x64
  - Release
- Fedora.26.Amd64-x64
  - Release
- SLES.12.Amd64-x64
  - Release
- OpenSuse.423.Amd64-x64
  - Release
- Ubuntu.1804.Amd64-x64
  - Release
- Ubuntu.1710.Amd64-x64
  - Release
- Ubuntu.1604.Amd64-x64
  - Release
- Ubuntu.1404.Amd64-x64
  - Release
- Debian.90.Amd64-x64
  - Release
- Debian.87.Amd64-x64
  - Release
- RedHat.74.Amd64-x64
  - Release
- RedHat.73.Amd64-x64
  - Release
- Centos.74.Amd64-x64
  - Release
- Centos.73.Amd64-x64
  - Release

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

In the container, it does fail

-- Performing Test HAVE_STAT_TIMESPEC
-- Performing Test HAVE_STAT_TIMESPEC - Failed
-- Performing Test HAVE_STAT_TIM
-- Performing Test HAVE_STAT_TIM - Failed
-- Performing Test HAVE_STAT_NSEC
-- Performing Test HAVE_STAT_NSEC - Failed