Branch data Line data Source code
1 : : #include "sute.h"
2 : :
3 : : /**
4 : : *
5 : : * Another simple test case
6 : : *
7 : : */
8 : 1 : Return test0005(void)
9 : : {
10 : 1 : INITTEST;
11 : :
12 : : // Example of suppress messages to STDERR
13 : 1 : const char *command = "echo Example message to STDERR that should be suppressed 1>&2";
14 : :
15 [ + - + - ]: 1 : ASSERT(SUCCESS == external_call(command,NULL,NULL,COMPLETED,STDERR_SUPPRESS));
16 : :
17 : : // Example of NOT suppressed messages to STDERR
18 : 1 : command = "echo Example message to STDERR that should be suppressed 1>&2";
19 : :
20 [ + - + - ]: 1 : ASSERT(SUCCESS == external_call(command,NULL,NULL,COMPLETED,STDERR_ALLOW));
21 : :
22 [ + - - + : 1 : RETURN_STATUS;
- - - + +
- ]
23 : : }
|