BOUT-dev icon indicating copy to clipboard operation
BOUT-dev copied to clipboard

Unit test failures on next with debug build

Open johnomotani opened this issue 3 years ago • 1 comments

On the current next (1707893f0f28525c310a2c82b836aafa71c87a44) with checks enabled, two of the unit tests fail for me (on Linux Mint 20.2, gcc-9.4.0, OpenMPI-4.0.3)

[ RUN      ] IndexOffsetStructTests/0.SubtractFromIndex
unknown file: Failure
C++ exception with description "Offset in y (-2) would go out of bounds at 0" thrown in the test body.
[  FAILED  ] IndexOffsetStructTests/0.SubtractFromIndex, where TypeParam = SpecificInd<(IND_TYPE)0> (2 ms)

and

[ RUN      ] IndexOffsetStructTests/1.SubtractFromIndex
unknown file: Failure
C++ exception with description "Offset in y (-2) would go out of bounds at 0" thrown in the test body.
[  FAILED  ] IndexOffsetStructTests/1.SubtractFromIndex, where TypeParam = SpecificInd<(IND_TYPE)1> (2 ms)

johnomotani avatar Aug 23 '22 10:08 johnomotani

I don't have time to follow this up right now. Not sure why the CI would have missed (?) this either - it looks like there isn't a debug build using CMake, but there is a debug build using configure.

johnomotani avatar Aug 23 '22 10:08 johnomotani

There's a working debug build with CMake in #2514, so this issue seems to be resolved

ZedThree avatar Apr 21 '23 08:04 ZedThree