d59f14065c
Catch and report unhandled exceptions before they propagate to C land The C++ interface to run test cases goes like this: 1) C++ run function -> 2) C run function -> 3) C++ wrapper for test case -> 4) test case head/body/cleanup The previous code caught and reported unhandled exceptions in 1). However, such approach does not seem to work everywhere. It fails, for example, in NetBSD/i386 but works in NetBSD/amd64. I am not sure which platform implementation is correct nor if there even _is_ a defined behavior. No matter what, it feels wrong and clunky. Move the last-resort exception catching to happen in 3) so that exceptions don't propagate back to C. Fixes the test-programs/result_test:result_exception test case in NetBSD/i386 5.99.34. |
||
---|---|---|
.. | ||
atf-c | ||
atf-c++ | ||
atf-check | ||
atf-config | ||
atf-report | ||
atf-run | ||
atf-sh | ||
atf-version | ||
doc | ||
test-programs | ||
tests/atf/atf-report | ||
atf-c.h | ||
atf-c++.hpp | ||
Atffile | ||
AUTHORS | ||
COPYING | ||
NEWS | ||
README |
Introductory information Automated Testing Framework =========================================================================== Introduction ************ The Automated Testing Framework (ATF) is a collection of libraries and utilities designed to ease unattended application testing in the hands of developers and end users of a specific piece of software. As regards developers, ATF provides the necessary means to easily create test suites composed of multiple test programs, which in turn are a collection of test cases. It also attempts to simplify the debugging of problems when these test cases detect an error by providing as much information as possible about the failure. As regards users, it simplifies the process of running the test suites and, in special, encourages end users to run them often: they do not need to have source trees around nor any other development tools installed to be able to certify that a given piece of software works on their machine as advertised. Other documents *************** * AUTHORS: List of authors and contributors for this project. * COPYING: License information. * INSTALL: Compilation and installation instructions. These is not the standard document shipped with many packages, so be sure to read it for things that are specific to ATF's build. * NEWS: List of major changes between formal, published releases. =========================================================================== vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2