X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c4de3b4124781ae066e774981efb0a6ef8c857ed..82cf3d43c742ba91f7c78bae73a0926c8ca71cd6:/src/xbt/config_test.cpp diff --git a/src/xbt/config_test.cpp b/src/xbt/config_test.cpp index dd89d9e6e8..8b419246fe 100644 --- a/src/xbt/config_test.cpp +++ b/src/xbt/config_test.cpp @@ -49,10 +49,7 @@ TEST_CASE("xbt::config: Configuration support", "config") INFO("Access to a non-existant entry"); - REQUIRE_THROWS_MATCHES( - simgrid::config::set_parse("color:blue"), xbt_ex, - Catch::Matchers::Predicate([](xbt_ex const& e) { return e.category == not_found_error; }, - "category not_found_error")); + REQUIRE_THROWS_AS(simgrid::config::set_parse("color:blue"), std::out_of_range); simgrid::config::finalize(); simgrid_config = temp;