X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/33a0823f281a06c8637eb7ef2ca9d37bf110a17d..84637d5a56f373e75eb6619d1afb54b7da3f5e36:/src/xbt/xbt_str_test.cpp diff --git a/src/xbt/xbt_str_test.cpp b/src/xbt/xbt_str_test.cpp index 48fe51b93f..e1e76005ab 100644 --- a/src/xbt/xbt_str_test.cpp +++ b/src/xbt/xbt_str_test.cpp @@ -29,9 +29,7 @@ void test_split_quoted(const std::string& name, const char* input, const std::ve template void test_parse_error(F function, const std::string& name, const char* str) { INFO(name); - REQUIRE_THROWS_MATCHES(function(str, "Parse error"), xbt_ex, - Catch::Matchers::Predicate([](xbt_ex const& e) { return e.category == arg_error; }, - "category arg_error")); + REQUIRE_THROWS_AS(function(str, "Parse error"), std::invalid_argument); } template void test_parse_ok(F function, const std::string& name, const char* str, T value)