s390x/cpumodel: give each test a unique output line
PATCH 1/1 s390x/cpumodel: give each test a unique output line
Until now we had multiple tests running under the same prefix. This can result in multiple identical lines like
SKIP: cpumodel: dependency: facility 5 not present
SKIP: cpumodel: dependency: facility 5 not present
Make this unique by adding a proper prefix.
Signed-off-by Christian Borntraeger <[email protected]>
--- s390x/cpumodel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
s390x/cpumodel.c +3 -2
@@ -116,14 +116,15 @@ int main(void)report_prefix_push ("dependency" );for (i =0 ; i <ARRAY_SIZE (dep); i++) { +report_prefix_pushf ("%d implies %d" , dep[i].facility, dep[i].implied);if (test_facility (dep[i].facility)) {report_xfail (dep[i].expected_tcg_fail &&vm_is_tcg (),test_facility (dep[i].implied), -"%d implies %d" , - dep[i].facility, dep[i].implied); +"but not available" ); }else {report_skip ("facility %d not present" , dep[i].facility); } +report_prefix_pop (); }report_prefix_pop ();
Signature · 1 line
2.31.1
Quoted 17 lines · Christian Borntraeger
Until now we had multiple tests running under the same prefix. This can result in multiple identical lines like
SKIP: cpumodel: dependency: facility 5 not present
SKIP: cpumodel: dependency: facility 5 not presentMake this unique by adding a proper prefix.
Signed-off-by Christian Borntraeger <[email protected]>--- s390x/cpumodel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)s390x/cpumodel.c +0
-0
s390x/cpumodel.c int main(void) · line 123
Quoted 10 lines
s390x/cpumodel.c +2
-2@@ -116,14 +116,15 @@ int main(void)report_prefix_push ("dependency" );for (i =0 ; i <ARRAY_SIZE (dep); i++) { +report_prefix_pushf ("%d implies %d" , dep[i].facility, dep[i].implied);if (test_facility (dep[i].facility)) {report_xfail (dep[i].expected_tcg_fail &&vm_is_tcg (),test_facility (dep[i].implied), -"%d implies %d" , - dep[i].facility, dep[i].implied); +"but not available" );
<bikeshedding>
Maybe rather something like "implication not correct" or so? </bikeshedding>
s390x/cpumodel.c int main(void) · line 130
Quoted 8 lines
s390x/cpumodel.c +1
-0}else {report_skip ("facility %d not present" , dep[i].facility); } +report_prefix_pop (); }report_prefix_pop ();
Reviewed-by Thomas Huth <[email protected]>