FreeNOS
Public Member Functions | Private Attributes
ExternalTest Class Reference

Represents external test program. More...

#include <ExternalTest.h>

Inheritance diagram for ExternalTest:
TestInstance

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 StringgetName () 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...
 

Detailed Description

Represents external test program.

Definition at line 34 of file ExternalTest.h.

Constructor & Destructor Documentation

◆ ExternalTest()

ExternalTest::ExternalTest ( const char *  name,
int  argc,
char **  argv 
)

Class constructor.

Parameters
nameTest progran name
argcProgram argument count
argvProgram argument values

Definition at line 28 of file ExternalTest.cpp.

References m_argc, and m_argv.

◆ ~ExternalTest()

ExternalTest::~ExternalTest ( )
virtual

Destructor.

Definition at line 35 of file ExternalTest.cpp.

Member Function Documentation

◆ run()

TestResult ExternalTest::run ( )
virtual

Run the external test.

Returns
TestResult

Implements TestInstance.

Definition at line 39 of file ExternalTest.cpp.

References FAIL, forkexec(), m_argc, m_argv, TestInstance::m_name, OK, and waitpid().

Field Documentation

◆ m_argc

int ExternalTest::m_argc
private

Program argument count.

Definition at line 62 of file ExternalTest.h.

Referenced by ExternalTest(), and run().

◆ m_argv

char** ExternalTest::m_argv
private

Program argument values.

Definition at line 65 of file ExternalTest.h.

Referenced by ExternalTest(), and run().


The documentation for this class was generated from the following files: