[libcxx] [test] Change the generic_string_alloc test to test conversions to all char...
authorMartin Storsjö <martin@martin.st>
Thu, 11 Mar 2021 09:03:46 +0000 (11:03 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 14 May 2021 08:56:48 +0000 (11:56 +0300)
commitc12c8124e14217779eb5b8d3a2a92a6469a799e7
tree0079a0940570443bd49a5f700a817cdcecc194e7
parent43a7f130a7440f2c5eaa30faf69b90e2a9c571a0
[libcxx] [test] Change the generic_string_alloc test to test conversions to all char types

On windows, the native path char type is wchar_t - therefore, this test
didn't actually do the conversion that the test was supposed to exercise.

The charset conversions on windows do cause extra allocations outside of
the provided allocator though, so that bit of the test has to be waived
now that the test actually does something. (Other tests have similar
TEST_NOT_WIN32() for allocation checks for charset conversions.)

Also fix a typo, and amend the path.native.obs/string_alloc test to
test char8_t, too.

Differential Revision: https://reviews.llvm.org/D102360
libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp
libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp