Domanda

What is the meaning of return code of unit_test_main function from Boost Testing Framework ?

È stato utile?

Soluzione

As you can find here, unit_test_main can return boost::exit_success if there were no errors or either boost::exit_exception_failure or boost::exit_test_failure depending on whether there were uncaught exceptions or not.

PS: If you pass your test program the command line option --result_code=no, unit_test_main will always return boost::exit_success.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top