Vladimir Kotal wrote:
<snip>
> Basically, the journal contains only the stdout/stderr messages but not
> those printed via tet_infoline():
I have just found a TET demo [*] which contains the following test purpose:
9 void tp1()
10 {
11 tet_infoline("This is the second test case (tc2)");
12 printf("We have not set TET_OUTPUT_CAPTURE=True ");
13 printf("so all normal stdin/stdout/stderr\nfiles are
available. ");
14 printf("\nIf we had set output capture, the results logged
by");
15 printf(" the API would not be in the journal.\n");
16 printf("But these lines would.\n");
17 tet_result(TET_PASS);
18 }
If my interpretation is correct (assuming the claim in the printf() is
true) then having stdout/stderr with tet_infoline() output in the
journal file at once is not possible. This would mean Lizhong Li was
correct.
v.
[*]
http://src.opensolaris.org/source/xref/test/stcnv/usr/src/tools/tet/contrib/demo110/ts/tc2.c