File tree Expand file tree Collapse file tree 2 files changed +22
-19
lines changed
libc/test/src/__support/wchar Expand file tree Collapse file tree 2 files changed +22
-19
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,16 @@ add_libc_test(
2121)
2222
2323
24- if (NOT (LIBC_TARGET_OS_IS_WINDOWS))
25- add_libc_test(
24+ add_libc_test(
25+ string_converter_test.cpp
26+ SUITE
27+ libc-support-tests
28+ SRCS
2629 string_converter_test.cpp
27- SUITE
28- libc-support-tests
29- SRCS
30- string_converter_test.cpp
31- DEPENDS
32- libc.src.__support.wchar.string_converter
33- libc.src.__support.wchar.mbstate
34- libc.src.__support.error_or
35- libc.hdr.errno_macros
36- libc.hdr.types.char32_t
37- )
38- endif ()
30+ DEPENDS
31+ libc.src.__support.wchar.string_converter
32+ libc.src.__support.wchar.mbstate
33+ libc.src.__support.error_or
34+ libc.hdr.errno_macros
35+ libc.hdr.types.char32_t
36+ )
Original file line number Diff line number Diff line change 66//
77// ===----------------------------------------------------------------------===//
88
9- // TODO: add support for 16-bit widechars to StringConverter to remove this
10- // macro
11- #include " src/__support/macros/properties/os.h"
12- #ifndef LIBC_TARGET_OS_IS_WINDOWS
13-
149#include " hdr/errno_macros.h"
1510#include " hdr/types/char32_t.h"
1611#include " hdr/types/char8_t.h"
1712#include " src/__support/error_or.h"
13+ #include " src/__support/macros/properties/os.h"
1814#include " src/__support/wchar/mbstate.h"
1915#include " src/__support/wchar/string_converter.h"
2016#include " test/UnitTest/Test.h"
2117
18+ // TODO: add support for 16-bit widechars to StringConverter to remove this
19+ // macro
20+ #ifdef LIBC_TARGET_OS_IS_WINDOWS
21+ TEST (LlvmLibcStringConverterTest, Windows) {
22+ // pass on windows for now
23+ }
24+ #endif
25+
26+ #ifndef LIBC_TARGET_OS_IS_WINDOWS
2227TEST (LlvmLibcStringConverterTest, UTF8To32) {
2328 // first 4 bytes are clown emoji (🤡)
2429 // next 3 bytes are sigma symbol (∑)
You can’t perform that action at this time.
0 commit comments