|
FreeNOS
|
Represents external test program. More...
#include <ExternalTest.h>
Public Member Functions | |
| ExternalTest (const char *name, int argc, char **argv) | |
| Class constructor. More... | |
| virtual | ~ExternalTest () |
| Destructor. More... | |
| virtual TestResult | run () |
| Run the external test. More... | |
Public Member Functions inherited from TestInstance | |
| TestInstance (const char *name) | |
| Class constructor. More... | |
| virtual | ~TestInstance () |
| Destructor. More... | |
| const String & | getName () const |
| Retrieve test instance name. More... | |
Private Attributes | |
| int | m_argc |
| Program argument count. More... | |
| char ** | m_argv |
| Program argument values. More... | |
Additional Inherited Members | |
Protected Attributes inherited from TestInstance | |
| String | m_name |
| Name of the test instance. More... | |
Represents external test program.
Definition at line 34 of file ExternalTest.h.
| ExternalTest::ExternalTest | ( | const char * | name, |
| int | argc, | ||
| char ** | argv | ||
| ) |
Class constructor.
| name | Test progran name |
| argc | Program argument count |
| argv | Program argument values |
Definition at line 28 of file ExternalTest.cpp.
|
virtual |
Destructor.
Definition at line 35 of file ExternalTest.cpp.
|
virtual |
Run the external test.
Implements TestInstance.
Definition at line 39 of file ExternalTest.cpp.
References FAIL, forkexec(), m_argc, m_argv, TestInstance::m_name, OK, and waitpid().
|
private |
Program argument count.
Definition at line 62 of file ExternalTest.h.
Referenced by ExternalTest(), and run().
|
private |
Program argument values.
Definition at line 65 of file ExternalTest.h.
Referenced by ExternalTest(), and run().
1.8.17