A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Getting rid of C exceptions
[simgrid.git]
/
src
/
xbt
/
cunit.cpp
diff --git
a/src/xbt/cunit.c
b/src/xbt/cunit.cpp
similarity index 99%
rename from
src/xbt/cunit.c
rename to
src/xbt/cunit.cpp
index
48393c4
..
1cfd7f8
100644
(file)
--- a/
src/xbt/cunit.c
+++ b/
src/xbt/cunit.cpp
@@
-669,7
+669,7
@@
void _xbt_test_fail(const char *file, int line, const char *fmt, ...)
void xbt_test_exception(xbt_ex_t e)
{
void xbt_test_exception(xbt_ex_t e)
{
- _xbt_test_fail(e.file, e.line, "Exception %s raised: %s", xbt_ex_catname(e.category), e.
msg
);
+ _xbt_test_fail(e.file, e.line, "Exception %s raised: %s", xbt_ex_catname(e.category), e.
what()
);
}
void xbt_test_expect_failure(void)
}
void xbt_test_expect_failure(void)