[libcxx-commits] [libcxx] [libc++][test] Move format.functions ASCII tests to `libcxx/test/libcxx` (PR #78661)

Stephan T. Lavavej via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 18 18:22:34 PST 2024


https://github.com/StephanTLavavej created https://github.com/llvm/llvm-project/pull/78661

As @cpplearner explained in microsoft/STL#4328:

> libc++'s "ascii" mode (controlled by the `_LIBCPP_HAS_NO_UNICODE` macro) means "every code unit outside ASCII is treated as a valid printable character". AFAIK we \[MSVC's STL\] don't support such a mode.

Because these files are testing a non-Standard mode, they should be moved from `libcxx/test/std` to `libcxx/test/libcxx`.

>From 5e38f18d4de470407dbb0ff389433e67d79166c9 Mon Sep 17 00:00:00 2001
From: "Stephan T. Lavavej" <stl at nuwen.net>
Date: Thu, 18 Jan 2024 18:15:26 -0800
Subject: [PATCH] Move format.functions ascii tests to libcxx.

They're testing a non-Standard mode.
---
 .../utilities/format/format.functions/ascii.pass.cpp              | 0
 .../format/format.functions/escaped_output.ascii.pass.cpp         | 0
 2 files changed, 0 insertions(+), 0 deletions(-)
 rename libcxx/test/{std => libcxx}/utilities/format/format.functions/ascii.pass.cpp (100%)
 rename libcxx/test/{std => libcxx}/utilities/format/format.functions/escaped_output.ascii.pass.cpp (100%)

diff --git a/libcxx/test/std/utilities/format/format.functions/ascii.pass.cpp b/libcxx/test/libcxx/utilities/format/format.functions/ascii.pass.cpp
similarity index 100%
rename from libcxx/test/std/utilities/format/format.functions/ascii.pass.cpp
rename to libcxx/test/libcxx/utilities/format/format.functions/ascii.pass.cpp
diff --git a/libcxx/test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp b/libcxx/test/libcxx/utilities/format/format.functions/escaped_output.ascii.pass.cpp
similarity index 100%
rename from libcxx/test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp
rename to libcxx/test/libcxx/utilities/format/format.functions/escaped_output.ascii.pass.cpp



More information about the libcxx-commits mailing list