X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5c5b48df7534ee73f162a93fc789d37c60fcb284..dfb4e2167c0963c8528f9534aa86816a1ec14e47:/src/xbt/cunit.cpp diff --git a/src/xbt/cunit.cpp b/src/xbt/cunit.cpp index f6d6ee0ba6..5076c2ee9f 100644 --- a/src/xbt/cunit.cpp +++ b/src/xbt/cunit.cpp @@ -1,6 +1,6 @@ /* cunit - A little C Unit facility */ -/* Copyright (c) 2005-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2005-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -14,8 +14,8 @@ #include #include +#include "simgrid/Exception.hpp" #include -#include #include /* output stream to use everywhere */ @@ -579,9 +579,10 @@ void _xbt_test_fail(const char *file, int line, const char *fmt, ...) test.failed_ = true; } -void xbt_test_exception(xbt_ex_t e) +void xbt_test_exception(xbt_ex 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()