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

[8.1.0] Some chrono tests failed on Big Endian architectures #2698

Closed
xvitaly opened this issue Jan 4, 2022 · 3 comments
Closed

[8.1.0] Some chrono tests failed on Big Endian architectures #2698

xvitaly opened this issue Jan 4, 2022 · 3 comments

Comments

@xvitaly
Copy link
Contributor

xvitaly commented Jan 4, 2022

OS: Fedora 36.
Compiler: GCC 11.2.1.
Full build log: build.log.

Log:

+ /usr/bin/ctest --output-on-failure --force-new-ctest-process -j2
Test project /builddir/build/BUILD/fmt-8.1.0/redhat-linux-build
      Start  1: args-test
      Start  2: assert-test
 1/19 Test  #1: args-test ........................   Passed    0.00 sec
      Start  3: chrono-test
 2/19 Test  #2: assert-test ......................   Passed    0.00 sec
      Start  4: color-test
 3/19 Test  #4: color-test .......................   Passed    0.00 sec
      Start  5: core-test
 4/19 Test  #5: core-test ........................   Passed    0.00 sec
      Start  6: gtest-extra-test
 5/19 Test  #6: gtest-extra-test .................   Passed    0.00 sec
      Start  7: format-test
 6/19 Test  #7: format-test ......................   Passed    0.01 sec
      Start  8: format-impl-test
 7/19 Test  #8: format-impl-test .................   Passed    0.01 sec
      Start  9: ostream-test
 8/19 Test  #9: ostream-test .....................   Passed    0.00 sec
      Start 10: compile-test
 9/19 Test #10: compile-test .....................   Passed    0.00 sec
      Start 11: compile-fp-test
10/19 Test #11: compile-fp-test ..................   Passed    0.00 sec
      Start 12: printf-test
11/19 Test #12: printf-test ......................   Passed    0.00 sec
      Start 13: ranges-test
12/19 Test #13: ranges-test ......................   Passed    0.00 sec
      Start 14: scan-test
13/19 Test #14: scan-test ........................   Passed    0.00 sec
      Start 15: unicode-test
14/19 Test #15: unicode-test .....................   Passed    0.00 sec
      Start 16: xchar-test
15/19 Test #16: xchar-test .......................***Failed    0.00 sec
[==========] Running 32 tests from 8 test suites.
[----------] Global test environment set-up.
[----------] 1 test from is_string_test/0, where TypeParam = char
[ RUN      ] is_string_test/0.is_string
[       OK ] is_string_test/0.is_string (0 ms)
[----------] 1 test from is_string_test/0 (0 ms total)
[----------] 1 test from is_string_test/1, where TypeParam = wchar_t
[ RUN      ] is_string_test/1.is_string
[       OK ] is_string_test/1.is_string (0 ms)
[----------] 1 test from is_string_test/1 (0 ms total)
[----------] 1 test from is_string_test/2, where TypeParam = char16_t
[ RUN      ] is_string_test/2.is_string
[       OK ] is_string_test/2.is_string (0 ms)
[----------] 1 test from is_string_test/2 (0 ms total)
[----------] 1 test from is_string_test/3, where TypeParam = char32_t
[ RUN      ] is_string_test/3.is_string
[       OK ] is_string_test/3.is_string (0 ms)
[----------] 1 test from is_string_test/3 (0 ms total)
[----------] 17 tests from xchar_test
[ RUN      ] xchar_test.format_explicitly_convertible_to_wstring_view
[       OK ] xchar_test.format_explicitly_convertible_to_wstring_view (0 ms)
[ RUN      ] xchar_test.format
[       OK ] xchar_test.format (0 ms)
[ RUN      ] xchar_test.is_formattable
[       OK ] xchar_test.is_formattable (0 ms)
[ RUN      ] xchar_test.compile_time_string
[       OK ] xchar_test.compile_time_string (0 ms)
[ RUN      ] xchar_test.format_utf8_precision
[       OK ] xchar_test.format_utf8_precision (0 ms)
[ RUN      ] xchar_test.format_to
[       OK ] xchar_test.format_to (0 ms)
[ RUN      ] xchar_test.vformat_to
[       OK ] xchar_test.vformat_to (0 ms)
[ RUN      ] xchar_test.format_udl
[       OK ] xchar_test.format_udl (0 ms)
[ RUN      ] xchar_test.named_arg_udl
[       OK ] xchar_test.named_arg_udl (0 ms)
[ RUN      ] xchar_test.print
[       OK ] xchar_test.print (0 ms)
[ RUN      ] xchar_test.join
[       OK ] xchar_test.join (0 ms)
[ RUN      ] xchar_test.enum
[       OK ] xchar_test.enum (0 ms)
[ RUN      ] xchar_test.sign_not_truncated
[       OK ] xchar_test.sign_not_truncated (0 ms)
[ RUN      ] xchar_test.chrono
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:268: Failure
Expected equality of these values:
  fmt::format(L"{:%F}", tm)
    Which is: L"2052-40-61"
  L"2016-04-25"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:269: Failure
Expected equality of these values:
  fmt::format(L"{:%T}", tm)
    Which is: L"33:22:11"
  L"11:22:33"
[  FAILED  ] xchar_test.chrono (0 ms)
[ RUN      ] xchar_test.color
[       OK ] xchar_test.color (0 ms)
[ RUN      ] xchar_test.ostream
[       OK ] xchar_test.ostream (0 ms)
[ RUN      ] xchar_test.to_wstring
[       OK ] xchar_test.to_wstring (0 ms)
[----------] 17 tests from xchar_test (0 ms total)
[----------] 2 tests from format_test
[ RUN      ] format_test.wide_format_to_n
[       OK ] format_test.wide_format_to_n (0 ms)
[ RUN      ] format_test.format_foreign_strings
[       OK ] format_test.format_foreign_strings (0 ms)
[----------] 2 tests from format_test (0 ms total)
[----------] 1 test from chrono_test
[ RUN      ] chrono_test.time_point
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:314: Failure
Expected equality of these values:
  sys_output
    Which is: L"01/04/22"
  fmt::format(fmt_spec, t1)
    Which is: L"22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:315: Failure
Expected equality of these values:
  sys_output
    Which is: L"01/04/22"
  fmt::format(fmt_spec, tm)
    Which is: L"22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:314: Failure
Expected equality of these values:
  sys_output
    Which is: L"01/04/22"
  fmt::format(fmt_spec, t1)
    Which is: L"22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:315: Failure
Expected equality of these values:
  sys_output
    Which is: L"01/04/22"
  fmt::format(fmt_spec, tm)
    Which is: L"22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:314: Failure
Expected equality of these values:
  sys_output
    Which is: L"08:53:25"
  fmt::format(fmt_spec, t1)
    Which is: L"52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:315: Failure
Expected equality of these values:
  sys_output
    Which is: L"08:53:25"
  fmt::format(fmt_spec, tm)
    Which is: L"52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:314: Failure
Expected equality of these values:
  sys_output
    Which is: L"08:53:25"
  fmt::format(fmt_spec, t1)
    Which is: L"52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:315: Failure
Expected equality of these values:
  sys_output
    Which is: L"08:53:25"
  fmt::format(fmt_spec, tm)
    Which is: L"52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:314: Failure
Expected equality of these values:
  sys_output
    Which is: L"01/04/22"
  fmt::format(fmt_spec, t1)
    Which is: L"22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:315: Failure
Expected equality of these values:
  sys_output
    Which is: L"01/04/22"
  fmt::format(fmt_spec, tm)
    Which is: L"22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:314: Failure
Expected equality of these values:
  sys_output
    Which is: L"2022-01-04"
  fmt::format(fmt_spec, t1)
    Which is: L"2040-10-22"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:315: Failure
Expected equality of these values:
  sys_output
    Which is: L"2022-01-04"
  fmt::format(fmt_spec, tm)
    Which is: L"2040-10-22"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:314: Failure
Expected equality of these values:
  sys_output
    Which is: L"08:53:25"
  fmt::format(fmt_spec, t1)
    Which is: L"52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:315: Failure
Expected equality of these values:
  sys_output
    Which is: L"08:53:25"
  fmt::format(fmt_spec, tm)
    Which is: L"52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:314: Failure
Expected equality of these values:
  sys_output
    Which is: L"Tue Jan  4 08:53:25 2022"
  fmt::format(fmt_spec, t1)
    Which is: L"Tue Jan  4 52:35:80 2022"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:315: Failure
Expected equality of these values:
  sys_output
    Which is: L"Tue Jan  4 08:53:25 2022"
  fmt::format(fmt_spec, tm)
    Which is: L"Tue Jan  4 52:35:80 2022"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:314: Failure
Expected equality of these values:
  sys_output
    Which is: L"Tue Jan  4 08:53:25 2022"
  fmt::format(fmt_spec, t1)
    Which is: L"Tue Jan  4 52:35:80 2022"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:315: Failure
Expected equality of these values:
  sys_output
    Which is: L"Tue Jan  4 08:53:25 2022"
  fmt::format(fmt_spec, tm)
    Which is: L"Tue Jan  4 52:35:80 2022"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:314: Failure
Expected equality of these values:
  sys_output
    Which is: L"08:53:25 AM"
  fmt::format(fmt_spec, t1)
    Which is: L"52:35:80 AM"
/builddir/build/BUILD/fmt-8.1.0/test/xchar-test.cc:315: Failure
Expected equality of these values:
  sys_output
    Which is: L"08:53:25 AM"
  fmt::format(fmt_spec, tm)
    Which is: L"52:35:80 AM"
[  FAILED  ] chrono_test.time_point (0 ms)
[----------] 1 test from chrono_test (0 ms total)
[----------] 8 tests from locale_test
[ RUN      ] locale_test.localized_double
[       OK ] locale_test.localized_double (0 ms)
[ RUN      ] locale_test.format
[       OK ] locale_test.format (0 ms)
[ RUN      ] locale_test.format_detault_align
[       OK ] locale_test.format_detault_align (0 ms)
[ RUN      ] locale_test.format_plus
[       OK ] locale_test.format_plus (0 ms)
[ RUN      ] locale_test.wformat
[       OK ] locale_test.wformat (0 ms)
[ RUN      ] locale_test.double_formatter
[       OK ] locale_test.double_formatter (0 ms)
[ RUN      ] locale_test.complex
[       OK ] locale_test.complex (0 ms)
[ RUN      ] locale_test.chrono_weekday
ru_RU.UTF-8 locale is missing.
[       OK ] locale_test.chrono_weekday (0 ms)
[----------] 8 tests from locale_test (0 ms total)
[----------] Global test environment tear-down
[==========] 32 tests from 8 test suites ran. (1 ms total)
[  PASSED  ] 30 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] xchar_test.chrono
[  FAILED  ] chrono_test.time_point
 2 FAILED TESTS
      Start 17: enforce-checks-test
16/19 Test #17: enforce-checks-test ..............   Passed    0.00 sec
      Start 18: posix-mock-test
17/19 Test #18: posix-mock-test ..................   Passed    0.00 sec
      Start 19: os-test
18/19 Test #19: os-test ..........................   Passed    0.00 sec
19/19 Test  #3: chrono-test ......................***Failed    0.06 sec
[==========] Running 27 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 27 tests from chrono_test
[ RUN      ] chrono_test.format_tm
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:88: Failure
Expected equality of these values:
  fmt::format("{:%D}", tm)
    Which is: "61/52/40"
  "04/25/16"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:89: Failure
Expected equality of these values:
  fmt::format("{:%F}", tm)
    Which is: "2052-40-61"
  "2016-04-25"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:90: Failure
Expected equality of these values:
  fmt::format("{:%T}", tm)
    Which is: "33:22:11"
  "11:22:33"
[  FAILED  ] chrono_test.format_tm (56 ms)
[ RUN      ] chrono_test.format_tm_future
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:163: Failure
Expected equality of these values:
  fmt::format("{:%D}", tm)
    Which is: "54/52/40"
  "04/25/45"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:164: Failure
Expected equality of these values:
  fmt::format("{:%F}", tm)
    Which is: "12345-40-00"
  "12345-04-25"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:165: Failure
Expected equality of these values:
  fmt::format("{:%T}", tm)
    Which is: "33:22:11"
  "11:22:33"
[  FAILED  ] chrono_test.format_tm_future (0 ms)
[ RUN      ] chrono_test.format_tm_past
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:189: Failure
Expected equality of these values:
  fmt::format("{:%D}", tm)
    Which is: "10/52/40"
  "04/25/01"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:191: Failure
Expected equality of these values:
  fmt::format("{:%F}", tm)
    Which is: "-101-40-00"
  "-101-04-25"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:192: Failure
Expected equality of these values:
  fmt::format("{:%T}", tm)
    Which is: "33:22:11"
  "11:22:33"
[  FAILED  ] chrono_test.format_tm_past (0 ms)
[ RUN      ] chrono_test.grow_buffer
[       OK ] chrono_test.grow_buffer (0 ms)
[ RUN      ] chrono_test.format_to_empty_container
[       OK ] chrono_test.format_to_empty_container (0 ms)
[ RUN      ] chrono_test.empty_result
[       OK ] chrono_test.empty_result (0 ms)
[ RUN      ] chrono_test.localtime
[       OK ] chrono_test.localtime (0 ms)
[ RUN      ] chrono_test.gmtime
[       OK ] chrono_test.gmtime (0 ms)
[ RUN      ] chrono_test.time_point
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:251: Failure
Expected equality of these values:
  strftime_full(t1)
    Which is: "2022-01-04 08:53:25"
  fmt::format("{}", t1)
    Which is: "2040-10-22 52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:278: Failure
Expected equality of these values:
  sys_output
    Which is: "01/04/22"
  fmt::format(fmt::runtime(fmt_spec), t1)
    Which is: "22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:279: Failure
Expected equality of these values:
  sys_output
    Which is: "01/04/22"
  fmt::format(fmt::runtime(fmt_spec), tm)
    Which is: "22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:278: Failure
Expected equality of these values:
  sys_output
    Which is: "01/04/22"
  fmt::format(fmt::runtime(fmt_spec), t1)
    Which is: "22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:279: Failure
Expected equality of these values:
  sys_output
    Which is: "01/04/22"
  fmt::format(fmt::runtime(fmt_spec), tm)
    Which is: "22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:278: Failure
Expected equality of these values:
  sys_output
    Which is: "08:53:25"
  fmt::format(fmt::runtime(fmt_spec), t1)
    Which is: "52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:279: Failure
Expected equality of these values:
  sys_output
    Which is: "08:53:25"
  fmt::format(fmt::runtime(fmt_spec), tm)
    Which is: "52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:278: Failure
Expected equality of these values:
  sys_output
    Which is: "08:53:25"
  fmt::format(fmt::runtime(fmt_spec), t1)
    Which is: "52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:279: Failure
Expected equality of these values:
  sys_output
    Which is: "08:53:25"
  fmt::format(fmt::runtime(fmt_spec), tm)
    Which is: "52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:278: Failure
Expected equality of these values:
  sys_output
    Which is: "01/04/22"
  fmt::format(fmt::runtime(fmt_spec), t1)
    Which is: "22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:279: Failure
Expected equality of these values:
  sys_output
    Which is: "01/04/22"
  fmt::format(fmt::runtime(fmt_spec), tm)
    Which is: "22/40/10"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:278: Failure
Expected equality of these values:
  sys_output
    Which is: "2022-01-04"
  fmt::format(fmt::runtime(fmt_spec), t1)
    Which is: "2040-10-22"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:279: Failure
Expected equality of these values:
  sys_output
    Which is: "2022-01-04"
  fmt::format(fmt::runtime(fmt_spec), tm)
    Which is: "2040-10-22"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:278: Failure
Expected equality of these values:
  sys_output
    Which is: "08:53:25"
  fmt::format(fmt::runtime(fmt_spec), t1)
    Which is: "52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:279: Failure
Expected equality of these values:
  sys_output
    Which is: "08:53:25"
  fmt::format(fmt::runtime(fmt_spec), tm)
    Which is: "52:35:80"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:278: Failure
Expected equality of these values:
  sys_output
    Which is: "Tue Jan  4 08:53:25 2022"
  fmt::format(fmt::runtime(fmt_spec), t1)
    Which is: "Tue Jan  4 52:35:80 2022"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:279: Failure
Expected equality of these values:
  sys_output
    Which is: "Tue Jan  4 08:53:25 2022"
  fmt::format(fmt::runtime(fmt_spec), tm)
    Which is: "Tue Jan  4 52:35:80 2022"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:278: Failure
Expected equality of these values:
  sys_output
    Which is: "Tue Jan  4 08:53:25 2022"
  fmt::format(fmt::runtime(fmt_spec), t1)
    Which is: "Tue Jan  4 52:35:80 2022"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:279: Failure
Expected equality of these values:
  sys_output
    Which is: "Tue Jan  4 08:53:25 2022"
  fmt::format(fmt::runtime(fmt_spec), tm)
    Which is: "Tue Jan  4 52:35:80 2022"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:278: Failure
Expected equality of these values:
  sys_output
    Which is: "08:53:25 AM"
  fmt::format(fmt::runtime(fmt_spec), t1)
    Which is: "52:35:80 AM"
/builddir/build/BUILD/fmt-8.1.0/test/chrono-test.cc:279: Failure
Expected equality of these values:
  sys_output
    Which is: "08:53:25 AM"
  fmt::format(fmt::runtime(fmt_spec), tm)
    Which is: "52:35:80 AM"
[  FAILED  ] chrono_test.time_point (0 ms)
[ RUN      ] chrono_test.format_default
[       OK ] chrono_test.format_default (0 ms)
[ RUN      ] chrono_test.align
[       OK ] chrono_test.align (0 ms)
[ RUN      ] chrono_test.format_specs
[       OK ] chrono_test.format_specs (0 ms)
[ RUN      ] chrono_test.invalid_specs
[       OK ] chrono_test.invalid_specs (0 ms)
[ RUN      ] chrono_test.locale
ja_JP.utf8 locale is missing.
[       OK ] chrono_test.locale (0 ms)
[ RUN      ] chrono_test.format_default_fp
[       OK ] chrono_test.format_default_fp (0 ms)
[ RUN      ] chrono_test.format_precision
[       OK ] chrono_test.format_precision (0 ms)
[ RUN      ] chrono_test.format_full_specs
[       OK ] chrono_test.format_full_specs (0 ms)
[ RUN      ] chrono_test.format_simple_q
[       OK ] chrono_test.format_simple_q (0 ms)
[ RUN      ] chrono_test.format_precision_q
[       OK ] chrono_test.format_precision_q (0 ms)
[ RUN      ] chrono_test.format_full_specs_q
[       OK ] chrono_test.format_full_specs_q (0 ms)
[ RUN      ] chrono_test.invalid_width_id
[       OK ] chrono_test.invalid_width_id (0 ms)
[ RUN      ] chrono_test.invalid_colons
[       OK ] chrono_test.invalid_colons (0 ms)
[ RUN      ] chrono_test.negative_durations
[       OK ] chrono_test.negative_durations (0 ms)
[ RUN      ] chrono_test.special_durations
[       OK ] chrono_test.special_durations (0 ms)
[ RUN      ] chrono_test.unsigned_duration
[       OK ] chrono_test.unsigned_duration (0 ms)
[ RUN      ] chrono_test.weekday
ru_RU.UTF-8 locale is missing.
[       OK ] chrono_test.weekday (0 ms)
[ RUN      ] chrono_test.cpp20_duration_subsecond_support
[       OK ] chrono_test.cpp20_duration_subsecond_support (0 ms)
[----------] 27 tests from chrono_test (57 ms total)
[----------] Global test environment tear-down
[==========] 27 tests from 1 test suite ran. (57 ms total)
[  PASSED  ] 23 tests.
[  FAILED  ] 4 tests, listed below:
[  FAILED  ] chrono_test.format_tm
[  FAILED  ] chrono_test.format_tm_future
[  FAILED  ] chrono_test.format_tm_past
[  FAILED  ] chrono_test.time_point
 4 FAILED TESTS
89% tests passed, 2 tests failed out of 19
Total Test time (real) =   0.06 sec
The following tests FAILED:
	  3 - chrono-test (Failed)
	 16 - xchar-test (Failed)
Errors while running CTest
@phprus
Copy link
Contributor

phprus commented Jan 4, 2022

Bug in function:

inline void write_digit2_separated(char* buf, unsigned a, unsigned b,

It is necessary to change the byte order before memcpy:

memcpy(buf, &digits, 8);

@phprus
Copy link
Contributor

phprus commented Jan 4, 2022

@xvitaly, Please check this patch:
phprus@0273005

@xvitaly
Copy link
Contributor Author

xvitaly commented Jan 4, 2022

Please check this patch:

It works now. Thanks.

Log:

+ /usr/bin/ctest --output-on-failure --force-new-ctest-process -j3
Test project /builddir/build/BUILD/fmt-8.1.0/redhat-linux-build
      Start  1: args-test
      Start  2: assert-test
      Start  3: chrono-test
 1/19 Test  #1: args-test ........................   Passed    0.00 sec
      Start  4: color-test
 2/19 Test  #2: assert-test ......................   Passed    0.00 sec
      Start  5: core-test
 3/19 Test  #4: color-test .......................   Passed    0.00 sec
      Start  6: gtest-extra-test
 4/19 Test  #5: core-test ........................   Passed    0.00 sec
      Start  7: format-test
 5/19 Test  #6: gtest-extra-test .................   Passed    0.00 sec
      Start  8: format-impl-test
 6/19 Test  #8: format-impl-test .................   Passed    0.01 sec
      Start  9: ostream-test
 7/19 Test  #7: format-test ......................   Passed    0.01 sec
      Start 10: compile-test
 8/19 Test  #9: ostream-test .....................   Passed    0.00 sec
      Start 11: compile-fp-test
 9/19 Test #11: compile-fp-test ..................   Passed    0.00 sec
      Start 12: printf-test
10/19 Test #10: compile-test .....................   Passed    0.00 sec
      Start 13: ranges-test
11/19 Test #13: ranges-test ......................   Passed    0.00 sec
      Start 14: scan-test
12/19 Test #12: printf-test ......................   Passed    0.01 sec
      Start 15: unicode-test
13/19 Test #15: unicode-test .....................   Passed    0.00 sec
      Start 16: xchar-test
14/19 Test #14: scan-test ........................   Passed    0.00 sec
      Start 17: enforce-checks-test
15/19 Test #17: enforce-checks-test ..............   Passed    0.00 sec
      Start 18: posix-mock-test
16/19 Test #16: xchar-test .......................   Passed    0.00 sec
      Start 19: os-test
17/19 Test #18: posix-mock-test ..................   Passed    0.00 sec
18/19 Test #19: os-test ..........................   Passed    0.01 sec
19/19 Test  #3: chrono-test ......................   Passed    0.06 sec
100% tests passed, 0 tests failed out of 19
Total Test time (real) =   0.06 sec

@vitaut vitaut closed this as completed Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants