Branch data Line data Source code
1 : : #include "test_libtestitall_all.h"
2 : :
3 : : /**
4 : : * @brief Check stderr suppression and accepted stderr output
5 : : *
6 : : * @return Return status code
7 : : */
8 : 1 : Return test_libtestitall_0002(void)
9 : : {
10 : 1 : INITTEST;
11 : 1 : const char *stderr_command = "echo Example message to STDERR that should be suppressed 1>&2";
12 : :
13 : : // Suppress expected messages written to stderr
14 : 1 : ASSERT(SUCCESS == external_call(stderr_command,NULL,NULL,COMPLETED,STDERR_SUPPRESS));
15 : :
16 : : // Allow expected messages written to stderr
17 : 1 : ASSERT(SUCCESS == external_call(stderr_command,NULL,NULL,COMPLETED,STDERR_ALLOW));
18 : :
19 : 1 : RETURN_STATUS;
20 : : }
|