26 Jan
2011
26 Jan
'11
8:48 p.m.
[Please do not mail me a copy of your followup] boost-users@lists.boost.org spake the secret code <875837.92076.qm@web161215.mail.bf1.yahoo.com> thusly:
How can I only ignore child.terminate() while running unittests?
Decouple the code from the concrete behavior of this function and use a test double in testing scenarios. One way to do this would be to extract the text that calls child.terminate() into its own virtual method and override that method in testing. -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/ Legalize Adulthood! http://legalizeadulthood.wordpress.com