[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
Mon Oct 4 12:23:45 PDT 2021


mstorsjo updated this revision to Diff 376995.
mstorsjo added a comment.

Retrigger CI


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.376995.patch
Type: text/x-patch
Size: 1038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211004/1f9c46f0/attachment-0001.bin>


More information about the libcxx-commits mailing list