From fc198521cd3e135bc07f6a86a5ffa9c70fc3abca Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 4 Jun 2025 21:49:54 +0100 Subject: [PATCH] libstdc++: Skip time zone format testing for COW std::string This is needed when testing with -D_GLIBCXX_USE_CXX11_ABI=0 to fix: FAIL: std/time/format/empty_spec.cc -std=gnu++20 (test for excess errors) libstdc++-v3/ChangeLog: * testsuite/std/time/format/empty_spec.cc: Only test time zones for cxx11 string ABI. --- libstdc++-v3/testsuite/std/time/format/empty_spec.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libstdc++-v3/testsuite/std/time/format/empty_spec.cc b/libstdc++-v3/testsuite/std/time/format/empty_spec.cc index ec57a6f0d20..a3c64f5211e 100644 --- a/libstdc++-v3/testsuite/std/time/format/empty_spec.cc +++ b/libstdc++-v3/testsuite/std/time/format/empty_spec.cc @@ -647,6 +647,7 @@ test_leap_second() WIDEN("2012-06-30 23:59:60") ); } +#if _GLIBCXX_USE_CXX11_ABI template auto make_zoned(const sys_time& st, const time_zone* tz) @@ -679,6 +680,7 @@ test_zoned_time() verify( make_zoned(st, tz), WIDEN("2022-01-08 02:00:00 EET") ); } +#endif template auto @@ -725,7 +727,9 @@ test_time_points() test_time_point(true); test_time_point(true); test_leap_second(); +#if _GLIBCXX_USE_CXX11_ABI test_zoned_time(); +#endif test_local_time_format(); test_no_empty_spec>(); -- 2.47.2