dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.04k stars 4.68k forks source link

Test failure file_io.GetSystemTimeAsFileTime.test1 #72421

Open VincentBu opened 2 years ago

VincentBu commented 2 years ago

Run: runtime-coreclr r2r-extra 20220717.1

Failed test:

R2R OSX arm64 Checked jitstressregs3 @ OSX.1200.ARM64.Open

- file_io.GetSystemTimeAsFileTime.test1

Error message:

ERROR: Two system times were tested, with a sleep of 3 seconds between.  The time passed should have been at least 3 seconds.  But, it was less according to the function.

Stack trace
dotnet-issue-labeler[bot] commented 2 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

danmoseley commented 2 years ago

Maybe increase the allowance from 10us ? https://github.com/dotnet/runtime/blob/16e983f8afc48526f24fb6d12efa406d994f8729/src/coreclr/pal/tests/palsuite/file_io/GetSystemTimeAsFileTime/test1/GetSystemTimeAsFileTime.cpp#L74

and/or log what the gap was in the message.