Skip to content

Fix building with Catch2 v3

Juan Miguel Carceller requested to merge jcarcell/Gaudi:catch2-adapters into master

The test introduced in !1598 (merged) seems to be missing an include with Catch2 v3 that provides GENERATE, repeat and value. Tested with Catch2 3.6.0 and GCC 14 and Clang 17, without this fix compilation fails with:

/Gaudi/GaudiCommonSvc/tests/src/test_PersistencySvc.cpp:158:51: error: use of undeclared identifier 'value'
  158 |   [[maybe_unused]] auto _ = GENERATE( repeat( 10, value( 0 ) ) );

Merge request reports