Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Failures in Waybar Due to Lack of CHRONO_TIMEZONES Support in GCC 12 #3948

Open
xzl01 opened this issue Feb 20, 2025 · 0 comments
Open
Labels
bug Something isn't working clock custom

Comments

@xzl01
Copy link

xzl01 commented Feb 20, 2025

Description:
When compiling the Waybar project using GCC 12, the following test failures were encountered. Due to the lack of CHRONO_TIMEZONES support in GCC 12, some tests failed.

../test/utils/date.cpp:71: FAILED:
  CHECK_THAT( fmt_lib::format(loc, "{:%c}", tm), Catch::Matchers::StartsWith("Mon 03 Jan 2022 01:04:05 PM") )
with expansion:

../test/utils/date.cpp:73: FAILED:
  CHECK( fmt_lib::format(loc, "{:%x %X}", tm) == "01/03/2022 01:04:05 PM" )
with expansion:

../test/utils/date.cpp:88: FAILED:
  CHECK_THAT( fmt_lib::format(loc, "{:%c}", tm), Catch::Matchers::StartsWith("Mon 03 Jan 2022 13:04:05") )
with expansion:

../test/utils/date.cpp:90: FAILED:
  CHECK( fmt_lib::format(loc, "{:%x %X}", tm) == "03/01/22 13:04:05" )
with expansion:

../test/utils/date.cpp:105: FAILED:
  CHECK_THAT( fmt_lib::format("{:%c}", tm), Catch::Matchers::StartsWith("Mon 03 Jan 2022 01:04:05 PM") )
with expansion:

../test/utils/date.cpp:107: FAILED:
  CHECK( fmt_lib::format("{:%x %X}", tm) == "01/03/2022 01:04:05 PM" )
with expansion:

../test/utils/date.cpp:141: FAILED:
  CHECK_THAT( fmt_lib::format(loc, "{:%c}", tm), Catch::Matchers::StartsWith("Mon 03 Jan 2022 08:04:05 AM") )
with expansion:

../test/utils/date.cpp:143: FAILED:
  CHECK( fmt_lib::format(loc, "{:%x %X}", tm) == "01/03/2022 08:04:05 AM" )
with expansion:

../test/utils/date.cpp:158: FAILED:
  CHECK_THAT( fmt_lib::format(loc, "{:%c}", tm), Catch::Matchers::StartsWith("Mon 03 Jan 2022 08:04:05") )
with expansion:
  "Mon Jan  3 08:04:05 2022" starts with: "Mon 03 Jan 2022 08:04:05"

../test/utils/date.cpp:160: FAILED:
  CHECK( fmt_lib::format(loc, "{:%x %X}", tm) == "03/01/22 08:04:05" )
with expansion:
  "01/03/22 08:04:05" == "03/01/22 08:04:05"

Steps to Reproduce:

  1. Clone the latest code of the Waybar project.
  2. Compile using GCC 12.
  3. The above errors occur during the testing phase.

Expected Result:
All tests should pass without any errors or warnings.

Actual Result:
The above errors occur during the testing phase, causing the tests to fail.

Environment:

  • Operating System: Debian
  • Build Tool: meson build
  • Compiler: GCC 12.3.0
@github-actions github-actions bot added bug Something isn't working clock custom labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clock custom
Projects
None yet
Development

No branches or pull requests

1 participant