[libcxx-commits] [PATCH] D110988: [libcxx] [test] Move a missed test to ctime.timespec.compile.pass.cpp

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 5 00:48:16 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG204d56394845: [libcxx] [test] Move a missed test to ctime.timespec.compile.pass.cpp (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110988/new/

https://reviews.llvm.org/D110988

Files:
  libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
  libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp


Index: libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp
===================================================================
--- libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp
+++ libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp
@@ -18,5 +18,9 @@
 #include <ctime>
 #include <type_traits>
 
+#ifndef TIME_UTC
+#error TIME_UTC not defined
+#endif
+
 std::timespec tmspec = {};
 static_assert(std::is_same<decltype(std::timespec_get(&tmspec, 0)), int>::value, "");
Index: libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
===================================================================
--- libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
+++ libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
@@ -20,12 +20,6 @@
 #error CLOCKS_PER_SEC not defined
 #endif
 
-#if TEST_STD_VER > 14
-#ifndef TIME_UTC
-#error TIME_UTC not defined
-#endif
-#endif
-
 int main(int, char**)
 {
     std::clock_t c = 0;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110988.377107.patch
Type: text/x-patch
Size: 1038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211005/bec19834/attachment.bin>


More information about the libcxx-commits mailing list