Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Factor code to get and resize temporary shared mem regions in smpi.
[simgrid.git] / src / xbt / config_test.cpp
index dd89d9e..f870f33 100644 (file)
@@ -47,12 +47,9 @@ TEST_CASE("xbt::config: Configuration support", "config")
     int ival = simgrid::config::get_value<int>("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>([](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;