-typedef struct s_TestCaseContext
-{
- char* name; /* the test case name */
- int timeoutValue; /* the timeout value */
- bool isOutputCheckingEnabled; /* if true, output checking is enable */
- bool isPostOutputCheckingEnabled; /* if true, the post output checking mode is enable */
- Buffer_t inputBuffer; /* buffer that contains child input */
- Buffer_t outputBuffer; /* the child output buffer */
- Buffer_t expectedOutputBuffer; /* buffer that contains child expected output */
- int expectedExitCode; /* the child expected exit code */
- int threadExitCode; /* the thread exit code */
- int exitCode; /* the child process exit code */
- bool runThread; /* false if the thread of the test case must terminate */
- HANDLE hThread; /* the handle of the thread */
- HANDLE hOutputRead; /* handle to the read pipe */
- HANDLE hInputWrite; /* handle to the write pipe */
- HANDLE hChildStdInRead; /* handle to the pipe used to read the child std input */
- HANDLE hChildStdOutWrite; /* handle to the pipe used to write to the chil std output */
- HANDLE hChildStderr; /* handle to the pipe used to read the child std error */
- PROCESS_INFORMATION pi; /* this structure contains child process informations */
- HANDLE hChildStdoutReadTmp; /* tempory handle */
- HANDLE hChildStdinWriteTmp; /* tempory handle */
- bool createConsole; /* true if we can create a console for the child process */
- bool exitCodeCheckingEnabled; /* true if we want to check the child exit code */
- HANDLE hConsole; /* handle to the console */
- bool started; /* true if the child process started */
- Buffer_t commandLineBuffer; /* command line buffer */
-
-}s_TestCaseContext_t,* TestCaseContext_t;
+typedef struct s_TestCaseContext {
+ char *name; /* the test case name */
+ int timeoutValue; /* the timeout value */
+ bool isOutputCheckingEnabled; /* if true, output checking is enable */
+ bool isPostOutputCheckingEnabled; /* if true, the post output checking mode is enable */
+ Buffer_t inputBuffer; /* buffer that contains child input */
+ Buffer_t outputBuffer; /* the child output buffer */
+ Buffer_t expectedOutputBuffer; /* buffer that contains child expected output */
+ int expectedExitCode; /* the child expected exit code */
+ int threadExitCode; /* the thread exit code */
+ int exitCode; /* the child process exit code */
+ bool runThread; /* false if the thread of the test case must terminate */
+ HANDLE hThread; /* the handle of the thread */
+ HANDLE hOutputRead; /* handle to the read pipe */
+ HANDLE hInputWrite; /* handle to the write pipe */
+ HANDLE hChildStdInRead; /* handle to the pipe used to read the child std input */
+ HANDLE hChildStdOutWrite; /* handle to the pipe used to write to the chil std output */
+ HANDLE hChildStderr; /* handle to the pipe used to read the child std error */
+ PROCESS_INFORMATION pi; /* this structure contains child process informations */
+ HANDLE hChildStdoutReadTmp; /* tempory handle */
+ HANDLE hChildStdinWriteTmp; /* tempory handle */
+ bool createConsole; /* true if we can create a console for the child process */
+ bool exitCodeCheckingEnabled; /* true if we want to check the child exit code */
+ HANDLE hConsole; /* handle to the console */
+ bool started; /* true if the child process started */
+ Buffer_t commandLineBuffer; /* command line buffer */
+
+} s_TestCaseContext_t, *TestCaseContext_t;