added basic signal handling: this allows to see how far did we go in our... #160
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
... testing if, eg. the code under test hits a seg-fault.
First of all - thanks for a great test-framework! I find it very useful - both at work and when writing open-source c++ stuff.
I have seen my code hitting a segmentation fault few times, and had to add debug-code to my existing test cases to see what test was invoking the buggy code.
I created a wrapper, that was simply registering signal handler(s), and from this handler I simply printed out some info on what was the last test / check that has executed successfully, and this gives a huge hint on where to look for the fault cause. (please have a look if this is the right thing - perhaps it should be done differently?)
I thought this could be in catch, thus my pull request.
below is my example code, which reveals also a possible bug?. But this (and few other ideas) are probably for other pull requests I guess:)
Cheers,
Lukasz.
test code:
and this gives me following info, when executing:
./example_test
Segmentation violation
while executing test: "my testcase"
(last successful check was: "ptr2++"
in: example_test.cpp, line: 26)