AcademySoftwareFoundation / Imath

Imath is a C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics
https://imath.readthedocs.io
BSD 3-Clause "New" or "Revised" License
387 stars 117 forks source link

./src/ImathTest/testMatrix.cpp:116: void testMatrix(): Assertion `m3 == m2' failed. #226

Open malaterre opened 2 years ago

malaterre commented 2 years ago

It seems like i386 issues are back again in codebase. The package is failing the unit test suite on i386 arch on Debian buildds:

18: Test command: /<<PKGBUILDDIR>>/build/bin/ImathTest "testMatrix"
18: Test timeout computed to be: 1500
9: rounding normalized numbers to 1-bit precision
9: max error          = 0.249634
9: max expected error = 0.249999
9: ok
9: 
18: Testing functions in ImathMatrix.h
18: Imath::M22f constructors and equality operators
18: M22d constructors and equality operators
18: M22f inversion operators
18: ImathTest: ./src/ImathTest/testMatrix.cpp:116: void testMatrix(): Assertion `m3 == m2' failed.
15/38 Test #18: Imath.testMatrix ........................Subprocess aborted***Exception:   0.00 sec
Testing functions in ImathMatrix.h
Imath::M22f constructors and equality operators
M22d constructors and equality operators
M22f inversion operators
ImathTest: ./src/ImathTest/testMatrix.cpp:116: void testMatrix(): Assertion `m3 == m2' failed.
malaterre commented 2 years ago

Another one:

21: ImathTest: ./src/ImathTest/testFun.cpp:70: void testf(float, bool): Assertion `bit_cast<unsigned> (pf) == bit_cast<unsigned> (f)' failed.
malaterre commented 2 years ago

and:

23: ImathTest: ./src/ImathTest/testInterval.cpp:189: void {anonymous}::testExtendByPoint(const char*) [with T = float]: Assertion `b.min == min && b.max == max' failed.
malaterre commented 2 years ago

This one looks different though:

1: Running testV2Array
1: V2iArray
1: ok
1: V2fArray
1: Traceback (most recent call last):
1:   File "/<<PKGBUILDDIR>>/src/python/PyImathTest/pyImathTest.in", line 10137, in <module>
1:     test[1]()
1:   File "/<<PKGBUILDDIR>>/src/python/PyImathTest/pyImathTest.in", line 2619, in testV2Array
1:     testV2xArray (V2fArray, V2f, FloatArray)
1:   File "/<<PKGBUILDDIR>>/src/python/PyImathTest/pyImathTest.in", line 2588, in testV2xArray
1:     assert (l[0] == v0.length())
1: AssertionError