Skip to content

Some unit tests failed on i386 #664

@Harry-Chen

Description

@Harry-Chen

Describe the bug

As described in #645 (comment), some unit tests are failing on i386.

The detailed logs can be retrieved from https://ci.debian.net/packages/j/jsoncons/testing/i386/66453183/. Some lines that might be useful:

3136s 1/1 Test #1: unit_tests .......................***Failed    2.62 sec
3136s d8 55 48 ff ff 7f ff ff ff 7f 7f 
3136s 82 fa ff 7f ff ff fa 7f 7f ff ff 
3136s 
3136s 
3136s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3136s unit_tests is a Catch v2.13.10 host application.
3136s Run with -? for options
3136s 
3136s -------------------------------------------------------------------------------
3136s cbor typed array tests
3136s   Tag 85, float32, little endian
3136s -------------------------------------------------------------------------------
3136s ./test/cbor/src/cbor_typed_array_tests.cpp:742
3136s ...............................................................................
3136s 
3136s ./test/cbor/src/cbor_typed_array_tests.cpp:38: FAILED:
3136s   CHECK( (u == v) )
3136s with expansion:
3136s   false
3136s 
3136s d8 56 50 ff ff ff ff ff ff ef ff ff ff ff ff ff ff ef 7f 
3136s 82 fb ff ef ff ff ff ff ff ff fb 7f ef ff ff ff ff ff ff 
3136s 
3136s -------------------------------------------------------------------------------
3136s cbor typed array tests
3136s   Tag 86, float64, little endian
3136s -------------------------------------------------------------------------------
3136s ./test/cbor/src/cbor_typed_array_tests.cpp:773
3136s ...............................................................................
3136s 
3136s ./test/cbor/src/cbor_typed_array_tests.cpp:38: FAILED:
3136s   CHECK( (u == v) )
3136s with expansion:
3136s   false

...


3136s ===============================================================================
3136s test cases:   838 |   837 passed | 1 failed
3136s assertions: 20292 | 20290 passed | 2 failed
3136s 
3136s 
3136s 
3136s 0% tests passed, 1 tests failed out of 1
3136s 
3136s Total Test time (real) =   2.62 sec
3136s 
3136s The following tests FAILED:
3136s 	  1 - unit_tests (Failed)

Enumerate the steps to reproduce the bug

Run the tests with -g -O2 on i386 machine (or chroot).

What compiler, architecture, and operating system?

  • Compiler: GCC 15.2.0
  • Architecture (e.g. x86, x64): i386 (x86)
  • Operating system: Debian sid

What jsoncons library version?

  • Latest release 1.5.0
  • Other release ______
  • master

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions