#include <test-main.h>
Public Member Functions | |
| Main () | |
| void | child () |
| void | testDied () |
| void | processStatus (std::string line) |
| void | parent () |
| void | status (std::string line) |
| void | confirm () |
| void | waitForAck () |
| int | main (int _argc, char **_argv) |
Public Attributes | |
| int | suite |
| int | test |
| wibble::sys::Pipe | p_status |
| wibble::sys::Pipe | p_confirm |
| int | status_fds [2] |
| int | confirm_fds [2] |
| pid_t | pid |
| int | argc |
| char ** | argv |
| pid_t | finished |
| int | status_code |
| int | test_ok |
| int | suite_ok |
| int | suite_failed |
| int | total_ok |
| int | total_failed |
| int | announced_suite |
| std::string | current |
| bool | want_fork |
| RunAll | all |
| Main::Main | ( | ) | [inline] |
References announced_suite, suite_failed, suite_ok, test_ok, total_failed, and total_ok.
| void Main::child | ( | ) | [inline] |
References all, argc, argv, confirm_fds, wibble::list::end(), RunAll::findSuite(), RunSuite::findTest(), p_confirm, RunAll::runFrom(), RunAll::runSuite(), RunAll::runTest(), status(), status_fds, suite, and test.
Referenced by main().
| void Main::confirm | ( | ) | [inline] |
References confirm_fds, and want_fork.
Referenced by processStatus().
| int Main::main | ( | int | _argc, | |
| char ** | _argv | |||
| ) | [inline] |
References all, argc, argv, child(), confirm_fds, RunAll::feedback, parent(), pid, status_fds, RunAll::suiteCount, RunAll::suites, and want_fork.
| void Main::parent | ( | ) | [inline] |
References assert_eq, confirm_fds, wibble::sys::Pipe::eof(), finished, wibble::sys::Pipe::nextLineBlocking(), p_status, pid, processStatus(), status_code, status_fds, and testDied().
Referenced by main().
| void Main::processStatus | ( | std::string | line | ) | [inline] |
References announced_suite, assert, assert_eq, confirm(), current, finished, pid, status_code, suite, suite_failed, suite_ok, test, test_ok, total_failed, total_ok, and want_fork.
| void Main::status | ( | std::string | line | ) | [inline, virtual] |
Implements RunFeedback.
References processStatus(), status_fds, and want_fork.
Referenced by child().
| void Main::testDied | ( | ) | [inline] |
References announced_suite, current, status_code, suite_failed, test, and test_ok.
Referenced by parent().
| void Main::waitForAck | ( | ) | [inline, virtual] |
Implements RunFeedback.
References assert_eq, wibble::sys::Pipe::nextLineBlocking(), p_confirm, and want_fork.
Referenced by Main(), processStatus(), and testDied().
| int Main::argc |
| char** Main::argv |
| int Main::confirm_fds[2] |
| std::string Main::current |
Referenced by processStatus(), and testDied().
| pid_t Main::finished |
Referenced by parent(), and processStatus().
Referenced by child(), and waitForAck().
Referenced by parent().
| pid_t Main::pid |
Referenced by main(), parent(), and processStatus().
Referenced by parent(), processStatus(), and testDied().
| int Main::status_fds[2] |
| int Main::suite |
Referenced by child(), and processStatus().
Referenced by Main(), processStatus(), and testDied().
| int Main::suite_ok |
Referenced by Main(), and processStatus().
| int Main::test |
Referenced by child(), processStatus(), and testDied().
| int Main::test_ok |
Referenced by Main(), processStatus(), and testDied().
Referenced by Main(), and processStatus().
| int Main::total_ok |
Referenced by Main(), and processStatus().
| bool Main::want_fork |
Referenced by confirm(), main(), processStatus(), status(), and waitForAck().
1.6.1