diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp @@ -29,6 +29,12 @@ #include #include +#ifdef _WIN32 +// On Windows, charset conversions cause allocations in the path class in +// cases where no allocations are done on other platforms. +#define DISABLE_NEW_COUNT +#endif + #include "test_macros.h" #include "test_iterators.h" #include "count_new.h" diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp @@ -29,6 +29,12 @@ #include #include +#ifdef _WIN32 +// On Windows, charset conversions cause allocations in the path class in +// cases where no allocations are done on other platforms. +#define DISABLE_NEW_COUNT +#endif + #include "test_macros.h" #include "test_iterators.h" #include "count_new.h" diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp @@ -36,6 +36,12 @@ #include #include +#ifdef _WIN32 +// On Windows, charset conversions cause allocations in the path class in +// cases where no allocations are done on other platforms. +#define DISABLE_NEW_COUNT +#endif + #include "test_macros.h" #include "test_iterators.h" #include "count_new.h" diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp @@ -24,6 +24,12 @@ #include #include +#ifdef _WIN32 +// On Windows, charset conversions cause allocations in the path class in +// cases where no allocations are done on other platforms. +#define DISABLE_NEW_COUNT +#endif + #include "test_macros.h" #include "test_iterators.h" #include "count_new.h" diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp @@ -25,6 +25,12 @@ #include #include +#ifdef _WIN32 +// On Windows, charset conversions cause allocations in the path class in +// cases where no allocations are done on other platforms. +#define DISABLE_NEW_COUNT +#endif + #include "test_macros.h" #include "test_iterators.h" #include "count_new.h"