[libcxx-commits] [libcxx] 3b12d34 - [libc++] Remove min_max_macros test

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 2 10:16:21 PDT 2023


Author: Louis Dionne
Date: 2023-06-02T10:05:43-07:00
New Revision: 3b12d34a70caf93050e85ddf91a5b32c8e89da8a

URL: https://github.com/llvm/llvm-project/commit/3b12d34a70caf93050e85ddf91a5b32c8e89da8a
DIFF: https://github.com/llvm/llvm-project/commit/3b12d34a70caf93050e85ddf91a5b32c8e89da8a.diff

LOG: [libc++] Remove min_max_macros test

This test is redundant since we already test the same thing in our
nasty_macros test.

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

Added: 
    

Modified: 
    

Removed: 
    libcxx/test/libcxx/min_max_macros.gen.py


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


        


More information about the libcxx-commits mailing list