[libcxx-commits] [libcxxabi] [libc++][Android] Mark tests XFAIL/UNSUPPORTED (PR #69271)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 16 18:41:38 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r 3694697003bbf443fd644c6746a1c7c937657fce..55db8d5415a0af868fe97522479080b9411f79f2 libcxx/test/libcxx/clang_modules_include.gen.py libcxx/utils/libcxx/test/features.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- test/libcxx/clang_modules_include.gen.py 2023-10-17 01:38:18.000000 +0000
+++ test/libcxx/clang_modules_include.gen.py 2023-10-17 01:41:32.096322 +0000
@@ -17,11 +17,12 @@
from libcxx.header_information import lit_header_restrictions, public_headers
BLOCKLIT = '' # block Lit from interpreting a RUN/XFAIL/etc inside the generation script
for header in public_headers:
- print(f"""\
+ print(
+ f"""\
//--- {header}.compile.pass.cpp
// RUN{BLOCKLIT}: %{{cxx}} %s %{{flags}} %{{compile_flags}} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only
// GCC doesn't support -fcxx-modules
// UNSUPPORTED{BLOCKLIT}: gcc
@@ -40,14 +41,16 @@
// UNSUPPORTED{BLOCKLIT}: LIBCXX-FREEBSD-FIXME
{lit_header_restrictions.get(header, '')}
#include <{header}>
-""")
+"""
+ )
# TODO: Remove the UNSUPPORTED{BLOCKLIT}: clang-modules-build once issues with this test have been figured out.
-print(f"""\
+print(
+ f"""\
//--- __std_clang_module.compile.pass.mm
// UNSUPPORTED{BLOCKLIT}: clang-modules-build
// RUN{BLOCKLIT}: %{{cxx}} %s %{{flags}} %{{compile_flags}} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only
@@ -69,6 +72,7 @@
// TODO: Investigate this failure
// UNSUPPORTED{BLOCKLIT}: LIBCXX-FREEBSD-FIXME
@import std;
-""")
+"""
+)
--- utils/libcxx/test/features.py 2023-10-17 01:38:18.000000 +0000
+++ utils/libcxx/test/features.py 2023-10-17 01:41:32.288447 +0000
@@ -42,18 +42,23 @@
except ConfigurationRuntimeError:
return None
def _getAndroidDeviceApi(cfg):
- return int(programOutput(cfg, r"""
+ return int(
+ programOutput(
+ cfg,
+ r"""
#include <android/api-level.h>
#include <stdio.h>
int main() {
printf("%d\n", android_get_device_api_level());
return 0;
}
- """))
+ """,
+ )
+ )
DEFAULT_FEATURES = [
Feature(
name="thread-safety",
``````````
</details>
https://github.com/llvm/llvm-project/pull/69271
More information about the libcxx-commits
mailing list