[libcxx-commits] [PATCH] D152007: [libc++] Remove min_max_macros test
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 2 10:05:43 PDT 2023
ldionne created this revision.
Herald added a project: All.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
This test is redundant since we already test the same thing in our
nasty_macros test.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152007
Files:
libcxx/test/libcxx/min_max_macros.gen.py
Index: libcxx/test/libcxx/min_max_macros.gen.py
===================================================================
--- libcxx/test/libcxx/min_max_macros.gen.py
+++ /dev/null
@@ -1,33 +0,0 @@
-#===----------------------------------------------------------------------===##
-#
-# 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
-#
-#===----------------------------------------------------------------------===##
-
-# Test that headers are not tripped up by the surrounding code defining the
-# min() and max() macros.
-
-# RUN: %{python} %s %{libcxx}/utils
-
-import sys
-sys.path.append(sys.argv[1])
-from libcxx.test.header_information import header_restrictions, public_headers
-
-for header in public_headers:
- test_condition_begin = '#if ' + header_restrictions[header] if header in header_restrictions else ''
- test_condition_end = '#endif' if header in header_restrictions else ''
-
- print(f"""\
-//--- {header}.compile.pass.cpp
-#define TEST_MACROS() static_assert(min() == true && max() == true, "")
-#define min() true
-#define max() true
-
-#include <__config>
-{test_condition_begin}
-#include <{header}>
-TEST_MACROS();
-{test_condition_end}
-""")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152007.527890.patch
Type: text/x-patch
Size: 1316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230602/d1ca8cc6/attachment-0001.bin>
More information about the libcxx-commits
mailing list