On Wed, Jun 4, 2025 at 11:04 PM Jonathan Wakely <jwak...@redhat.com> wrote:

> 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.
> ---
>
> Pushed to trunk.
>
Thanks for fixing this up.

>
>  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 ec57a6f0d209..a3c64f5211ef 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<typename Dur, typename Dur2>
>  auto
>  make_zoned(const sys_time<Dur2>& st, const time_zone* tz)
> @@ -679,6 +680,7 @@ test_zoned_time()
>    verify( make_zoned<kilodays>(st, tz),
>           WIDEN("2022-01-08 02:00:00 EET") );
>  }
> +#endif
>
>  template<typename Dur, typename Dur2>
>  auto
> @@ -725,7 +727,9 @@ test_time_points()
>    test_time_point<CharT, gps_clock>(true);
>    test_time_point<CharT, file_clock>(true);
>    test_leap_second<CharT>();
> +#if _GLIBCXX_USE_CXX11_ABI
>    test_zoned_time<CharT>();
> +#endif
>    test_local_time_format<CharT>();
>
>    test_no_empty_spec<CharT, sys_time<years>>();
> --
> 2.49.0
>
>

Reply via email to