43 char **argv =
new char * [
m_argc + 2];
45 for (
int i = 1; i <
m_argc; i++)
49 argv[
m_argc] = (
char *)
"-n";
53 if ((pid = fork()) == 0)
61 return status == 0 ?
OK :
FAIL;
virtual ~ExternalTest()
Destructor.
char ** m_argv
Program argument values.
virtual TestResult run()
Run the external test.
ExternalTest(const char *name, int argc, char **argv)
Class constructor.
int m_argc
Program argument count.
Represents a test instance.
String m_name
Name of the test instance.
Represents a Test result created by a TestInstance.
C int forkexec(const char *path, const char *argv[])
Create a new process and execute program.
ProcessID pid_t
Used for process IDs and process group IDs.
C pid_t waitpid(pid_t pid, int *stat_loc, int options)
Wait for a child process to stop or terminate.