diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f1fc19aeac..e493ca88ea 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -79,7 +79,7 @@ jobs: - name: "Debug, shared" os: ubuntu-latest - cmake_options: "-DCHECK=3 + cmake_options: "-DCHECK=4 -DCMAKE_BUILD_TYPE=Debug -DBOUT_ENABLE_SIGNAL=ON -DBOUT_ENABLE_TRACK=ON diff --git a/tests/unit/include/bout/test_stencil.cxx b/tests/unit/include/bout/test_stencil.cxx index 033a865154..2d76a9a7f1 100644 --- a/tests/unit/include/bout/test_stencil.cxx +++ b/tests/unit/include/bout/test_stencil.cxx @@ -12,10 +12,13 @@ class IndexOffsetStructTests : public ::testing::Test { public: IndexOffsetStructTests() { zero = T(0, std::is_same_v ? 1 : 5, std::is_same_v ? 1 : 7); + finite = + T(239, std::is_same_v ? 1 : 5, std::is_same_v ? 1 : 12); } IndexOffset noOffset; T zero; + T finite; }; template @@ -144,15 +147,15 @@ TYPED_TEST(IndexOffsetStructTests, AddToIndex) { TYPED_TEST(IndexOffsetStructTests, SubtractFromIndex) { IndexOffset offset1 = {1, 0, 0}, offset2 = {0, 2, 0}, offset3 = {0, 0, 11}, offset4 = {2, 3, -2}; - EXPECT_EQ(this->zero - offset1, this->zero.xm()); + EXPECT_EQ(this->finite - offset1, this->finite.xm()); if constexpr (!std::is_same_v) { - EXPECT_EQ(this->zero - offset2, this->zero.ym(2)); + EXPECT_EQ(this->finite - offset2, this->finite.ym(2)); } if constexpr (!std::is_same_v) { - EXPECT_EQ(this->zero - offset3, this->zero.zm(11)); + EXPECT_EQ(this->finite - offset3, this->finite.zm(11)); } if constexpr (std::is_same_v) { - EXPECT_EQ(this->zero - offset4, this->zero.zp(2).xm(2).ym(3)); + EXPECT_EQ(this->finite - offset4, this->finite.zp(2).xm(2).ym(3)); } }