81cb17ebca
Since the test uses existing system temp directory entries that aren't created/maintained by the test itself, they may be removed between the two calls to statSync(). Modify the test to allow for cases where the first statSync() returns a non-notFound result and the second returns a notFound result. Also check that at least one iteration of the loop had a successful result where the statSync() result is the same for both and was not a notFound result, as all system temp entries retrieved by listSync() being removed before one or both statSync() calls is highly unlikely. TEST=standalone/io/file_windows_test Fixes: https://github.com/dart-lang/sdk/issues/61007 Cq-Include-Trybots: luci.dart.try:vm-win-release-x64-try Change-Id: If4bb4a6f6b1e21558e447e4e5a918523c69ff044 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/437442 Commit-Queue: Tess Strickland <sstrickl@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/tree/main/docs/Testing.md.