X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c4de3b4124781ae066e774981efb0a6ef8c857ed..a88d4f2d2d1d5cce8f3cc1350f41d0dd52d55a31:/src/xbt/config_test.cpp diff --git a/src/xbt/config_test.cpp b/src/xbt/config_test.cpp index dd89d9e6e8..f870f3365a 100644 --- a/src/xbt/config_test.cpp +++ b/src/xbt/config_test.cpp @@ -47,12 +47,9 @@ TEST_CASE("xbt::config: Configuration support", "config") int ival = simgrid::config::get_value("speed"); REQUIRE(ival == 42); // Unexpected value for speed - INFO("Access to a non-existant entry"); + INFO("Access to a non-existent 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;