[libcxx-commits] [PATCH] D117993: [libc++][RFC] Guard against libc++ macros in tests.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jan 23 10:13:26 PST 2022


Mordante updated this revision to Diff 402351.
Mordante added a comment.

Fix the temporary file name. Since the review now depends on D117992 <https://reviews.llvm.org/D117992> the CI should pass.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117993

Files:
  libcxx/test/libcxx/lint/lint_libcpp_macros_in_tests.sh.c:wqpp


Index: libcxx/test/libcxx/lint/lint_libcpp_macros_in_tests.sh.c:wqpp
===================================================================
--- /dev/null
+++ libcxx/test/libcxx/lint/lint_libcpp_macros_in_tests.sh.c:wqpp
@@ -0,0 +1,16 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// Tests in the test/std should work with all Standard library implementations.
+// This test greps for the usage of some libc++ internal defines that have a
+// TEST macro that achieves the same in a portable fashion.
+//
+// Upon failure the found results are part of the test's failure output. This
+// makes finding the occurrences easy.
+
+RUN: not grep -R _LIBCPP_HAS_NO_INT128 %S/../../std


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117993.402351.patch
Type: text/x-patch
Size: 1010 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220123/0a4e4a79/attachment.bin>


More information about the libcxx-commits mailing list