[libc++] Remove min_max_macros test
authorLouis Dionne <ldionne.2@gmail.com>
Wed, 31 May 2023 14:30:32 +0000 (07:30 -0700)
committerLouis Dionne <ldionne.2@gmail.com>
Fri, 2 Jun 2023 17:05:43 +0000 (10:05 -0700)
This test is redundant since we already test the same thing in our
nasty_macros test.

Differential Revision: https://reviews.llvm.org/D152007

libcxx/test/libcxx/min_max_macros.gen.py [deleted file]

diff --git a/libcxx/test/libcxx/min_max_macros.gen.py b/libcxx/test/libcxx/min_max_macros.gen.py
deleted file mode 100644 (file)
index 96bc3d8..0000000
+++ /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}
-""")