Using boost 1.33.1 unit tests on Fedora7.
Our code base uses many singletons, so therefore it is not possible to create completely 'clean开发者_如何学Go' unit tests.
What I would like to do is have a test that is executed after all the other tests to make sure the previous tests have tidied up after themselves.
I've tried naming a test suite and the file AAAFinalTest or ZZZFinalTest. But it always appears at the same position. It's probably a link order thing.
Is there any way to force the test to the end?
Why don't you use global fixture?
You will not be able to use testing tools, but you can always report a misuse into std::err or do an assert.
精彩评论