fmtlib / fmt

A modern formatting library
https://fmt.dev
Other
20.46k stars 2.45k forks source link

Test errors for libfmt 9.0.0 on linux/i686: chrono-test, format-test, format-impl-test #2992

Closed satmandu closed 2 years ago

satmandu commented 2 years ago

(8.1.1 built and tested fine.)

Built with these flags on ChromeOS/i686: CFLAGS="-O2 -pipe -flto -ffat-lto-objects -fPIC -fuse-ld=mold " CXXFLAGS="-O2 -pipe -flto -ffat-lto-objects -fPIC -fuse-ld=mold " FCFLAGS="-O2 -pipe -flto -ffat-lto-objects -fPIC -fuse-ld=mold " FFLAGS="-O2 -pipe -flto -ffat-lto-objects -fPIC -fuse-ld=mold " LDFLAGS="-flto "

bin/chrono-test --rerun-failed --output-on-failure
[==========] Running 27 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 27 tests from chrono_test
[ RUN      ] chrono_test.format_tm
[       OK ] chrono_test.format_tm (94 ms)
[ RUN      ] chrono_test.format_tm_future
[       OK ] chrono_test.format_tm_future (0 ms)
[ RUN      ] chrono_test.format_tm_past
[       OK ] 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
[       OK ] 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
/usr/local/tmp/crew/libfmt.20220719151149.dir/test/chrono-test.cc:560: Failure
Expected equality of these values:
  "44.000000000000"
  fmt::format("{:%S}", std::chrono::duration<float, std::pico>( 1.54213895E+26))
    Which is: "16.437500000000"
[  FAILED  ] 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 (96 ms total)

[----------] Global test environment tear-down
[==========] 27 tests from 1 test suite ran. (96 ms total)
[  PASSED  ] 26 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] chrono_test.special_durations

 1 FAILED TEST
bin/format-test --rerun-failed --output-on-failure
[==========] Running 106 tests from 6 test suites.
[----------] Global test environment set-up.
[----------] 5 tests from uint128_test
[ RUN      ] uint128_test.ctor
[       OK ] uint128_test.ctor (0 ms)
[ RUN      ] uint128_test.shift
[       OK ] uint128_test.shift (0 ms)
[ RUN      ] uint128_test.minus
[       OK ] uint128_test.minus (0 ms)
[ RUN      ] uint128_test.plus_assign
[       OK ] uint128_test.plus_assign (0 ms)
[ RUN      ] uint128_test.multiply
[       OK ] uint128_test.multiply (0 ms)
[----------] 5 tests from uint128_test (0 ms total)

[----------] 2 tests from float_test
[ RUN      ] float_test.isfinite
[       OK ] float_test.isfinite (0 ms)
[ RUN      ] float_test.isnan
[       OK ] float_test.isnan (0 ms)
[----------] 2 tests from float_test (0 ms total)

[----------] 9 tests from util_test
[ RUN      ] util_test.bit_cast
[       OK ] util_test.bit_cast (0 ms)
[ RUN      ] util_test.increment
[       OK ] util_test.increment (0 ms)
[ RUN      ] util_test.parse_nonnegative_int
[       OK ] util_test.parse_nonnegative_int (0 ms)
[ RUN      ] util_test.utf8_to_utf16
[       OK ] util_test.utf8_to_utf16 (0 ms)
[ RUN      ] util_test.utf8_to_utf16_empty_string
[       OK ] util_test.utf8_to_utf16_empty_string (0 ms)
[ RUN      ] util_test.allocator_ref
[       OK ] util_test.allocator_ref (0 ms)
[ RUN      ] util_test.format_system_error
warning: std::allocator allocates 2147483647 chars[       OK ] util_test.format_system_error (0 ms)
[ RUN      ] util_test.system_error
[       OK ] util_test.system_error (0 ms)
[ RUN      ] util_test.report_system_error
[       OK ] util_test.report_system_error (0 ms)
[----------] 9 tests from util_test (0 ms total)

[----------] 9 tests from memory_buffer_test
[ RUN      ] memory_buffer_test.ctor
[       OK ] memory_buffer_test.ctor (0 ms)
[ RUN      ] memory_buffer_test.move_ctor_inline_buffer
[       OK ] memory_buffer_test.move_ctor_inline_buffer (0 ms)
[ RUN      ] memory_buffer_test.move_ctor_dynamic_buffer
[       OK ] memory_buffer_test.move_ctor_dynamic_buffer (0 ms)
[ RUN      ] memory_buffer_test.move_assignment
[       OK ] memory_buffer_test.move_assignment (0 ms)
[ RUN      ] memory_buffer_test.grow
[       OK ] memory_buffer_test.grow (0 ms)
[ RUN      ] memory_buffer_test.allocator
[       OK ] memory_buffer_test.allocator (0 ms)
[ RUN      ] memory_buffer_test.exception_in_deallocate
[       OK ] memory_buffer_test.exception_in_deallocate (0 ms)
[ RUN      ] memory_buffer_test.max_size_allocator
[       OK ] memory_buffer_test.max_size_allocator (0 ms)
[ RUN      ] memory_buffer_test.max_size_allocator_overflow
[       OK ] memory_buffer_test.max_size_allocator_overflow (0 ms)
[----------] 9 tests from memory_buffer_test (0 ms total)

[----------] 79 tests from format_test
[ RUN      ] format_test.escape
[       OK ] format_test.escape (0 ms)
[ RUN      ] format_test.unmatched_braces
[       OK ] format_test.unmatched_braces (0 ms)
[ RUN      ] format_test.no_args
[       OK ] format_test.no_args (0 ms)
[ RUN      ] format_test.args_in_different_positions
[       OK ] format_test.args_in_different_positions (0 ms)
[ RUN      ] format_test.arg_errors
[       OK ] format_test.arg_errors (0 ms)
[ RUN      ] format_test.many_args
[       OK ] format_test.many_args (0 ms)
[ RUN      ] format_test.named_arg
[       OK ] format_test.named_arg (0 ms)
[ RUN      ] format_test.auto_arg_index
[       OK ] format_test.auto_arg_index (0 ms)
[ RUN      ] format_test.empty_specs
[       OK ] format_test.empty_specs (0 ms)
[ RUN      ] format_test.left_align
[       OK ] format_test.left_align (0 ms)
[ RUN      ] format_test.right_align
[       OK ] format_test.right_align (0 ms)
[ RUN      ] format_test.center_align
[       OK ] format_test.center_align (0 ms)
[ RUN      ] format_test.fill
[       OK ] format_test.fill (0 ms)
[ RUN      ] format_test.plus_sign
[       OK ] format_test.plus_sign (0 ms)
[ RUN      ] format_test.minus_sign
[       OK ] format_test.minus_sign (0 ms)
[ RUN      ] format_test.space_sign
[       OK ] format_test.space_sign (0 ms)
[ RUN      ] format_test.hash_flag
[       OK ] format_test.hash_flag (0 ms)
[ RUN      ] format_test.zero_flag
[       OK ] format_test.zero_flag (0 ms)
[ RUN      ] format_test.width
[       OK ] format_test.width (0 ms)
[ RUN      ] format_test.runtime_width
[       OK ] format_test.runtime_width (0 ms)
[ RUN      ] format_test.precision
[       OK ] format_test.precision (0 ms)
[ RUN      ] format_test.runtime_precision
[       OK ] format_test.runtime_precision (0 ms)
[ RUN      ] format_test.format_bool
[       OK ] format_test.format_bool (0 ms)
[ RUN      ] format_test.format_short
[       OK ] format_test.format_short (0 ms)
[ RUN      ] format_test.format_int
[       OK ] format_test.format_int (1 ms)
[ RUN      ] format_test.format_bin
[       OK ] format_test.format_bin (0 ms)
[ RUN      ] format_test.format_dec
[       OK ] format_test.format_dec (0 ms)
[ RUN      ] format_test.format_hex
[       OK ] format_test.format_hex (0 ms)
[ RUN      ] format_test.format_oct
[       OK ] format_test.format_oct (0 ms)
[ RUN      ] format_test.format_int_locale
[       OK ] format_test.format_int_locale (0 ms)
[ RUN      ] format_test.format_float
[       OK ] format_test.format_float (0 ms)
[ RUN      ] format_test.format_double
[       OK ] format_test.format_double (1 ms)
[ RUN      ] format_test.precision_rounding
[       OK ] format_test.precision_rounding (0 ms)
[ RUN      ] format_test.prettify_float
[       OK ] format_test.prettify_float (0 ms)
[ RUN      ] format_test.format_nan
[       OK ] format_test.format_nan (0 ms)
[ RUN      ] format_test.format_infinity
[       OK ] format_test.format_infinity (0 ms)
[ RUN      ] format_test.format_long_double
[       OK ] format_test.format_long_double (0 ms)
[ RUN      ] format_test.format_char
[       OK ] format_test.format_char (1 ms)
[ RUN      ] format_test.format_volatile_char
[       OK ] format_test.format_volatile_char (0 ms)
[ RUN      ] format_test.format_unsigned_char
[       OK ] format_test.format_unsigned_char (0 ms)
[ RUN      ] format_test.format_cstring
[       OK ] format_test.format_cstring (1 ms)
[ RUN      ] format_test.format_pointer
[       OK ] format_test.format_pointer (1 ms)
[ RUN      ] format_test.write_uintptr_fallback
[       OK ] format_test.write_uintptr_fallback (0 ms)
[ RUN      ] format_test.format_enum_class
[       OK ] format_test.format_enum_class (0 ms)
[ RUN      ] format_test.format_string
[       OK ] format_test.format_string (0 ms)
[ RUN      ] format_test.format_string_view
[       OK ] format_test.format_string_view (0 ms)
[ RUN      ] format_test.format_convertible_to_anything
[       OK ] format_test.format_convertible_to_anything (0 ms)
[ RUN      ] format_test.format_custom
[       OK ] format_test.format_custom (0 ms)
[ RUN      ] format_test.format_to_custom
[       OK ] format_test.format_to_custom (0 ms)
[ RUN      ] format_test.format_string_from_speed_test
[       OK ] format_test.format_string_from_speed_test (0 ms)
[ RUN      ] format_test.format_examples
[       OK ] format_test.format_examples (0 ms)
[ RUN      ] format_test.print
[       OK ] format_test.print (0 ms)
[ RUN      ] format_test.variadic
[       OK ] format_test.variadic (0 ms)
[ RUN      ] format_test.dynamic
[       OK ] format_test.dynamic (0 ms)
[ RUN      ] format_test.bytes
[       OK ] format_test.bytes (0 ms)
[ RUN      ] format_test.group_digits_view
[       OK ] format_test.group_digits_view (0 ms)
[ RUN      ] format_test.join
[       OK ] format_test.join (0 ms)
[ RUN      ] format_test.format_message_example
[       OK ] format_test.format_message_example (0 ms)
[ RUN      ] format_test.unpacked_args
[       OK ] format_test.unpacked_args (0 ms)
[ RUN      ] format_test.compile_time_string
[       OK ] format_test.compile_time_string (0 ms)
[ RUN      ] format_test.custom_format_compile_time_string
[       OK ] format_test.custom_format_compile_time_string (0 ms)
[ RUN      ] format_test.named_arg_udl
[       OK ] format_test.named_arg_udl (0 ms)
[ RUN      ] format_test.enum
[       OK ] format_test.enum (0 ms)
[ RUN      ] format_test.formatter_not_specialized
[       OK ] format_test.formatter_not_specialized (0 ms)
[ RUN      ] format_test.non_null_terminated_format_string
[       OK ] format_test.non_null_terminated_format_string (0 ms)
[ RUN      ] format_test.dynamic_formatter
[       OK ] format_test.dynamic_formatter (0 ms)
[ RUN      ] format_test.to_string
/usr/local/tmp/crew/libfmt.20220719151149.dir/test/format-test.cc:1991: Failure
Expected equality of these values:
  fmt::to_string(__float128(0.5))
    Which is: "5.5077973690462315819595188003364951136e-4928"
  "0.5"
[  FAILED  ] format_test.to_string (0 ms)
[ RUN      ] format_test.output_iterators
[       OK ] format_test.output_iterators (0 ms)
[ RUN      ] format_test.formatted_size
[       OK ] format_test.formatted_size (0 ms)
[ RUN      ] format_test.format_to_no_args
[       OK ] format_test.format_to_no_args (0 ms)
[ RUN      ] format_test.format_to
[       OK ] format_test.format_to (0 ms)
[ RUN      ] format_test.format_to_memory_buffer
[       OK ] format_test.format_to_memory_buffer (0 ms)
[ RUN      ] format_test.format_to_vector
[       OK ] format_test.format_to_vector (0 ms)
[ RUN      ] format_test.format_to_propagates_exceptions
[       OK ] format_test.format_to_propagates_exceptions (0 ms)
[ RUN      ] format_test.format_to_n
[       OK ] format_test.format_to_n (0 ms)
[ RUN      ] format_test.format_to_n_output_iterator
[       OK ] format_test.format_to_n_output_iterator (0 ms)
[ RUN      ] format_test.char_traits_is_not_ambiguous
[       OK ] format_test.char_traits_is_not_ambiguous (0 ms)
[ RUN      ] format_test.back_insert_slicing
[       OK ] format_test.back_insert_slicing (0 ms)
[ RUN      ] format_test.test_formatters_enabled
[       OK ] format_test.test_formatters_enabled (0 ms)
[----------] 79 tests from format_test (10 ms total)

[----------] 2 tests from format_int_test
[ RUN      ] format_int_test.data
[       OK ] format_int_test.data (0 ms)
[ RUN      ] format_int_test.format_int
[       OK ] format_int_test.format_int (0 ms)
[----------] 2 tests from format_int_test (0 ms total)

[----------] Global test environment tear-down
[==========] 106 tests from 6 test suites ran. (11 ms total)
[  PASSED  ] 105 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] format_test.to_string

 1 FAILED TEST
bin/format-impl-test --rerun-failed --output-on-failure
[==========] Running 24 tests from 4 test suites.
[----------] Global test environment set-up.
[----------] 1 test from header_only_test
[ RUN      ] header_only_test.format
[       OK ] header_only_test.format (0 ms)
[----------] 1 test from header_only_test (0 ms total)

[----------] 10 tests from bigint_test
[ RUN      ] bigint_test.construct
[       OK ] bigint_test.construct (0 ms)
[ RUN      ] bigint_test.compare
[       OK ] bigint_test.compare (0 ms)
[ RUN      ] bigint_test.add_compare
[       OK ] bigint_test.add_compare (0 ms)
[ RUN      ] bigint_test.shift_left
[       OK ] bigint_test.shift_left (0 ms)
[ RUN      ] bigint_test.multiply
[       OK ] bigint_test.multiply (0 ms)
[ RUN      ] bigint_test.square
[       OK ] bigint_test.square (0 ms)
[ RUN      ] bigint_test.divmod_assign_zero_divisor
[       OK ] bigint_test.divmod_assign_zero_divisor (0 ms)
[ RUN      ] bigint_test.divmod_assign_self
[       OK ] bigint_test.divmod_assign_self (0 ms)
[ RUN      ] bigint_test.divmod_assign_unaligned
[       OK ] bigint_test.divmod_assign_unaligned (0 ms)
[ RUN      ] bigint_test.divmod_assign
[       OK ] bigint_test.divmod_assign (0 ms)
[----------] 10 tests from bigint_test (0 ms total)

[----------] 8 tests from fp_test
[ RUN      ] fp_test.double_tests
[       OK ] fp_test.double_tests (0 ms)
[ RUN      ] fp_test.normalize
[       OK ] fp_test.normalize (0 ms)
[ RUN      ] fp_test.multiply
[       OK ] fp_test.multiply (0 ms)
[ RUN      ] fp_test.get_cached_power
[       OK ] fp_test.get_cached_power (12 ms)
[ RUN      ] fp_test.dragonbox_max_k
[       OK ] fp_test.dragonbox_max_k (0 ms)
[ RUN      ] fp_test.get_round_direction
[       OK ] fp_test.get_round_direction (0 ms)
[ RUN      ] fp_test.fixed_handler
[       OK ] fp_test.fixed_handler (0 ms)
[ RUN      ] fp_test.grisu_format_compiles_with_on_ieee_double
[       OK ] fp_test.grisu_format_compiles_with_on_ieee_double (0 ms)
[----------] 8 tests from fp_test (12 ms total)

[----------] 5 tests from format_impl_test
[ RUN      ] format_impl_test.format_error_code
[       OK ] format_impl_test.format_error_code (0 ms)
[ RUN      ] format_impl_test.compute_width
[       OK ] format_impl_test.compute_width (0 ms)
[ RUN      ] format_impl_test.count_digits
[       OK ] format_impl_test.count_digits (0 ms)
[ RUN      ] format_impl_test.write_float128
/usr/local/tmp/crew/libfmt.20220719151149.dir/test/format-impl-test.cc:360: Failure
Expected equality of these values:
  s
    Which is: "5.5099196966553210909853471157086794699e-4928"
  "42"
[  FAILED  ] format_impl_test.write_float128 (0 ms)
[ RUN      ] format_impl_test.write_double_double
[       OK ] format_impl_test.write_double_double (0 ms)
[----------] 5 tests from format_impl_test (0 ms total)

[----------] Global test environment tear-down
[==========] 24 tests from 4 test suites ran. (13 ms total)
[  PASSED  ] 23 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] format_impl_test.write_float128

 1 FAILED TEST
vitaut commented 2 years ago

Same as #2992 (fixed in master).

satmandu commented 2 years ago

Noted as a duplicate of #2975 .