Skip to content

[libc++] sys_info.zdump.pass.cpp fails on %z format with tzdata 2024bΒ #108957

@mgorny

Description

@mgorny
FAIL: llvm-libc++-shared.cfg.in :: std/time/time.zone/time.zone.timezone/time.zone.members/sys_info.zdump.pass.cpp (8335 of 9747)
******************** TEST 'llvm-libc++-shared.cfg.in :: std/time/time.zone/time.zone.timezone/time.zone.members/sys_info.zdump.pass.cpp' FAILED ********************
Exit Code: 250

Command Output (stdout):
--
# COMPILED WITH
/usr/lib/ccache/bin/i686-pc-linux-gnu-clang++ /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/libcxx/test/std/time/time.zone/time.zone.timezone/time.zone.members/sys_info.zdump.pass.cpp -pthread --target=i686-pc-linux-gnu -nostdinc++ -I /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/libcxx/test-suite-install/include/c++/v1 -I /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/libcxx/test-suite-install/include/c++/v1 -I /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/libcxx/test/support -std=c++26 -Werror -Wall -Wctad-maybe-unsupported -Wextra -Wshadow -Wundef -Wunused-template -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-noexcept-type -Wno-atomic-alignment -Wno-reserved-module-identifier -Wdeprecated-copy -Wdeprecated-copy-dtor -Wno-user-defined-literals -Wno-tautological-compare -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Wno-local-type-template-args -Wno-c++11-extensions -Wno-unknown-pragmas -Wno-pass-failed -Wno-mismatched-new-delete -Wno-redundant-move -Wno-self-move -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBCPP_ENABLE_EXPERIMENTAL -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -Werror=thread-safety -Wuser-defined-warnings  -lc++experimental -nostdlib++ -L /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/libcxx/test-suite-install/lib -Wl,-rpath,/var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/libcxx/test-suite-install/lib -lc++ -latomic -o /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/test/std/time/time.zone/time.zone.timezone/time.zone.members/Output/sys_info.zdump.pass.cpp.dir/t.tmp.exe
# executed command: /usr/lib/ccache/bin/i686-pc-linux-gnu-clang++ /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/libcxx/test/std/time/time.zone/time.zone.timezone/time.zone.members/sys_info.zdump.pass.cpp -pthread --target=i686-pc-linux-gnu -nostdinc++ -I /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/libcxx/test-suite-install/include/c++/v1 -I /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/libcxx/test-suite-install/include/c++/v1 -I /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/libcxx/test/support -std=c++26 -Werror -Wall -Wctad-maybe-unsupported -Wextra -Wshadow -Wundef -Wunused-template -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-noexcept-type -Wno-atomic-alignment -Wno-reserved-module-identifier -Wdeprecated-copy -Wdeprecated-copy-dtor -Wno-user-defined-literals -Wno-tautological-compare -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Wno-local-type-template-args -Wno-c++11-extensions -Wno-unknown-pragmas -Wno-pass-failed -Wno-mismatched-new-delete -Wno-redundant-move -Wno-self-move -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBCPP_ENABLE_EXPERIMENTAL -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -Werror=thread-safety -Wuser-defined-warnings -lc++experimental -nostdlib++ -L /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/libcxx/test-suite-install/lib -Wl,-rpath,/var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/libcxx/test-suite-install/lib -lc++ -latomic -o /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/test/std/time/time.zone/time.zone.timezone/time.zone.members/Output/sys_info.zdump.pass.cpp.dir/t.tmp.exe
# EXECUTED AS
/usr/bin/python3.13 /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/libcxx/utils/run.py --execdir /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/test/std/time/time.zone/time.zone.timezone/time.zone.members/Output/sys_info.zdump.pass.cpp.dir --  /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/test/std/time/time.zone/time.zone.timezone/time.zone.members/Output/sys_info.zdump.pass.cpp.dir/t.tmp.exe
# executed command: /usr/bin/python3.13 /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/libcxx/utils/run.py --execdir /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/test/std/time/time.zone/time.zone.timezone/time.zone.members/Output/sys_info.zdump.pass.cpp.dir -- /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/runtimes_build-abi_x86_32.x86/test/std/time/time.zone/time.zone.timezone/time.zone.members/Output/sys_info.zdump.pass.cpp.dir/t.tmp.exe
# .---command stderr------------
# | Assertion failure: libcxx.str() == zdump.str() /var/tmp/portage/sys-libs/libcxx-20.0.0_pre20240917/work/libcxx/test/std/time/time.zone/time.zone.timezone/time.zone.members/sys_info.zdump.pass.cpp 123
# | 
# | TZ=Africa/Bissau
# | libc++
# | Africa/Bissau  Mon Jan  1 00:59:59 1912 UT = Sun Dec 31 23:57:39 1911 LMT isdst=0 gmtoff=-3740
# | Africa/Bissau  Mon Jan  1 01:00:00 1912 UT = Mon Jan  1 00:00:00 1912 %z isdst=0 gmtoff=-3600
# | Africa/Bissau  Wed Jan  1 00:59:59 1975 UT = Tue Dec 31 23:59:59 1974 %z isdst=0 gmtoff=-3600
# | Africa/Bissau  Wed Jan  1 01:00:00 1975 UT = Wed Jan  1 01:00:00 1975 GMT isdst=0 gmtoff=0
# | |
# | 
# | zdump
# | Africa/Bissau  Mon Jan  1 00:59:59 1912 UT = Sun Dec 31 23:57:39 1911 LMT isdst=0 gmtoff=-3740
# | Africa/Bissau  Mon Jan  1 01:00:00 1912 UT = Mon Jan  1 00:00:00 1912 -01 isdst=0 gmtoff=-3600
# | Africa/Bissau  Wed Jan  1 00:59:59 1975 UT = Tue Dec 31 23:59:59 1974 -01 isdst=0 gmtoff=-3600
# | Africa/Bissau  Wed Jan  1 01:00:00 1975 UT = Wed Jan  1 01:00:00 1975 GMT isdst=0 gmtoff=0
# | |
# `-----------------------------
# error: command failed with exit status: 250

--

********************

Note that %z doesn't seem to be expanded. This is on 41f1b46.

Metadata

Metadata

Assignees

Labels

libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions