Skip to content

[libc++] Avoid spuriously unsupporting the new FTM tests #142024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

ldionne
Copy link
Member

@ldionne ldionne commented May 29, 2025

The new FTM tests contain text that they validate against to check the output of the FTM generation script. However, that text lexically contains the characters // UNSUPPORTED: <...>, which leads Lit to make the whole test unsupported under these conditions. To prevent that from happening, an # END. block can be used to prevent Lit from looking further into the file for directives.

The new FTM tests contain text that they validate against to check
the output of the FTM generation script. However, that text lexically
contains the characters `// UNSUPPORTED: <...>`, which leads Lit to
make the whole test unsupported under these conditions. To prevent
that from happening, an `# END.` block can be used to prevent Lit
from looking further into the file for directives.
@ldionne ldionne requested a review from mordante May 29, 2025 19:39
@ldionne ldionne requested a review from a team as a code owner May 29, 2025 19:39
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label May 29, 2025
@llvmbot
Copy link
Member

llvmbot commented May 29, 2025

@llvm/pr-subscribers-libcxx

Author: Louis Dionne (ldionne)

Changes

The new FTM tests contain text that they validate against to check the output of the FTM generation script. However, that text lexically contains the characters // UNSUPPORTED: &lt;...&gt;, which leads Lit to make the whole test unsupported under these conditions. To prevent that from happening, an # END. block can be used to prevent Lit from looking further into the file for directives.


Full diff: https://github.com/llvm/llvm-project/pull/142024.diff

1 Files Affected:

  • (modified) libcxx/test/libcxx/feature_test_macro/generate_header_test.sh.py (+1)
diff --git a/libcxx/test/libcxx/feature_test_macro/generate_header_test.sh.py b/libcxx/test/libcxx/feature_test_macro/generate_header_test.sh.py
index 98acfeacd0181..789a0bc25a87b 100644
--- a/libcxx/test/libcxx/feature_test_macro/generate_header_test.sh.py
+++ b/libcxx/test/libcxx/feature_test_macro/generate_header_test.sh.py
@@ -7,6 +7,7 @@
 # ===----------------------------------------------------------------------===##
 
 # RUN: %{python} %s %{libcxx-dir}/utils %{libcxx-dir}/test/libcxx/feature_test_macro/test_data.json %t/tests
+# END.
 
 import os
 import sys

@ldionne ldionne merged commit 9dc5dac into llvm:main Jun 5, 2025
194 of 207 checks passed
@ldionne ldionne deleted the review/add-END-to-FTM-test branch June 5, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants