[all-commits] [llvm/llvm-project] 69a10e: [libc++][test] Consistently use `TEST_SHORT_WCHAR`...

Stephan T. Lavavej via All-commits all-commits at lists.llvm.org
Sun Dec 10 07:28:30 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 69a10e0e6af8ce4b4db88e307a21c8ca87add4af
      https://github.com/llvm/llvm-project/commit/69a10e0e6af8ce4b4db88e307a21c8ca87add4af
  Author: Stephan T. Lavavej <stl at nuwen.net>
  Date:   2023-12-10 (Sun, 10 Dec 2023)

  Changed paths:
    M libcxx/test/std/utilities/format/format.functions/escaped_output.unicode.pass.cpp
    M libcxx/test/support/msvc_stdlib_force_include.h

  Log Message:
  -----------
  [libc++][test] Consistently use `TEST_SHORT_WCHAR` (#74958)

Found while running libc++'s test suite with MSVC's STL.

* In `escaped_output.unicode.pass.cpp`, replace `_LIBCPP_SHORT_WCHAR`
with `TEST_SHORT_WCHAR`.
+ This was the only test that was directly using the `_LIBCPP` macro.
`libcxx/test/support/test_macros.h` performs this mapping:
https://github.com/llvm/llvm-project/blob/c60ac509399da5cba533b9b6cc5b983c59f7d7b3/libcxx/test/support/test_macros.h#L442-L444
* In `msvc_stdlib_force_include.h`, define `TEST_SHORT_WCHAR`.




More information about the All-commits mailing list