X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84637d5a56f373e75eb6619d1afb54b7da3f5e36..0a98e0dd953ca1a907d77f3c4eabdce39e62c1e5:/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;