[libcxx-commits] [PATCH] D89535: [libcxx] [test] Ifdef out the time point resolution and range check on windows
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 16 03:38:40 PDT 2020
mstorsjo created this revision.
mstorsjo added a reviewer: libc++.
Herald added a project: libc++.
Herald added 1 blocking reviewer(s): libc++.
mstorsjo requested review of this revision.
On windows (both with MS STL and libstdc++), the file time has 100 ns resolution; the standard doesn't mandate a specific resolution.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89535
Files:
libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type.pass.cpp
Index: libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type.pass.cpp
===================================================================
--- libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type.pass.cpp
+++ libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type.pass.cpp
@@ -32,16 +32,20 @@
((void)odr_use);
}
+#ifndef _WIN32
void test_time_point_resolution_and_range() {
using namespace fs;
using Dur = file_time_type::duration;
using Period = Dur::period;
ASSERT_SAME_TYPE(Period, std::nano);
}
+#endif
int main(int, char**) {
test_trivial_clock();
+#ifndef _WIN32
test_time_point_resolution_and_range();
+#endif
return 0;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89535.298584.patch
Type: text/x-patch
Size: 738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201016/262c6199/attachment-0001.bin>
More information about the libcxx-commits
mailing list