X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5c5b48df7534ee73f162a93fc789d37c60fcb284..f4225257bc8e26afe7338c3785cb284aa83a0cec:/src/xbt/cunit.cpp diff --git a/src/xbt/cunit.cpp b/src/xbt/cunit.cpp index f6d6ee0ba6..a3a625fda7 100644 --- a/src/xbt/cunit.cpp +++ b/src/xbt/cunit.cpp @@ -14,8 +14,8 @@ #include #include +#include "simgrid/Exception.hpp" #include -#include #include /* output stream to use everywhere */ @@ -581,7 +581,8 @@ void _xbt_test_fail(const char *file, int line, const char *fmt, ...) void xbt_test_exception(xbt_ex_t e) { - _xbt_test_fail(e.throwPoint().file, e.throwPoint().line, "Exception %s raised: %s", xbt_ex_catname(e.category), e.what()); + _xbt_test_fail(e.throw_point().file_, e.throw_point().line_, "Exception %s raised: %s", xbt_ex_catname(e.category), + e.what()); } void xbt_test_expect_failure()