libcifpp icon indicating copy to clipboard operation
libcifpp copied to clipboard

libcifpp-7.0.4: unit-3d-test fails

Open pacho2 opened this issue 1 year ago • 2 comments
trafficstars

I get the following error:

2/8 Testing: unit-3d-test
2/8 Test: unit-3d-test
Command: "/var/tmp/portage/sci-libs/libcifpp-7.0.4/work/libcifpp-7.0.4_build/test/unit-3d-test" "--data-dir" "/var/tmp/portage/sci-libs/libcifpp-7.0.4/work/libcifpp-7.0.4/test"
Directory: /var/tmp/portage/sci-libs/libcifpp-7.0.4/work/libcifpp-7.0.4_build/test
"unit-3d-test" start time: May 18 11:40 CEST
Output:
----------------------------------------------------------
Randomness seeded to: 731304775
(1.70711,1.70711,0)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unit-3d-test is a Catch2 v3.5.2 host application.
Run with -? for options

-------------------------------------------------------------------------------
dh_q_0
-------------------------------------------------------------------------------
/var/tmp/portage/sci-libs/libcifpp-7.0.4/work/libcifpp-7.0.4/test/unit-3d-test.cpp:146
...............................................................................

/var/tmp/portage/sci-libs/libcifpp-7.0.4/work/libcifpp-7.0.4/test/unit-3d-test.cpp:179: FAILED:
  REQUIRE_THAT( p.m_z, Catch::Matchers::WithinRel(0, 0.01f) )
with expansion:
  -0.0f and 0 are within 1% of each other

===============================================================================
test cases:      15 |      14 passed | 1 failed
assertions: 5099623 | 5099622 passed | 1 failed

<end of output>
Test time =   0.72 sec
----------------------------------------------------------
Test Failed.
"unit-3d-test" end time: May 18 11:40 CEST
"unit-3d-test" time elapsed: 00:00:00
----------------------------------------------------------

Thanks for your help

pacho2 avatar May 18 '24 09:05 pacho2

I get that same error when compiling for macOS (see: https://github.com/PDB-REDO/libcifpp/actions)

What compiler/OS are you using?

In fact this is a bug in the test, not the code itself. But I agree that it needs to be fixed.

mhekkel avatar May 18 '24 10:05 mhekkel

I am using Gentoo and gcc 13.2.1

pacho2 avatar May 18 '24 10:05 pacho2

Could you check the latest release?

drlemmus avatar Sep 10 '24 10:09 drlemmus

It works fine, thanks!

pacho2 avatar Sep 15 '24 12:09 pacho2