[Parted-commits] GNU Parted Official Repository: Changes to 'master'
Otavio Salvador
otavio at alioth.debian.org
Fri Apr 20 00:32:00 UTC 2007
libparted/tests/common.c | 10 ++++++++++
libparted/tests/common.h | 6 ++++++
libparted/tests/label.c | 3 +++
3 files changed, 19 insertions(+), 0 deletions(-)
New commits:
commit cba3a64fb1744f545c373594c8795a4da30558c4
Author: Otavio Salvador <otavio at ossystems.com.br>
Date: Thu Apr 19 21:30:53 2007 -0300
[tests] Add _test_exception_handler to fail every time an exception is raised
Sometimes parts of code raises exceptions and this shouldn't happen on
tests. To ensure we catch them a specific exception handler has been
implemented.
The handler usage is very easy. You just need to put the following
code at testsuite main method:
...
/* Fail when an exception is raised */
ped_exception_set_handler (_test_exception_handler);
...
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
More information about the Parted-commits
mailing list