Split the resolution check to a separate test, which is marked as unsupported on windows.
On windows (both with MS STL and libstdc++), the file time has 100 ns resolution; the standard doesn't mandate a specific resolution.
Differential D89535
[libcxx] [test] Split the file_time_type synopsis test mstorsjo on Oct 16 2020, 3:38 AM. Authored by
Details
Split the resolution check to a separate test, which is marked as unsupported on windows. On windows (both with MS STL and libstdc++), the file time has 100 ns resolution; the standard doesn't mandate a specific resolution.
Diff Detail
Event Timeline
Comment Actions LGTM with the suggested change.
|
I would rather you mark the whole test as // UNSUPPORTED on Windows. Or split this part of the test into another test, and mark that as unsupported.
I'm trying to get rid of platform specific #ifs in the test suite when possible. It gives a better overview of what is and isn't supported when running the test suite on various platforms.