@@ -328,21 +328,13 @@ sub print_categories {
328
328
print ( " ================================================================================\n " );
329
329
print ( " Test summary\n " );
330
330
printf ( " %d Total tests\n " , $#keys +1 );
331
- printf ( " %d Tests pending\n " , $#pendings +1 );
332
331
printf ( " %d Tests passed\n " , $#passes +1 );
333
332
printf ( " %d Tests compare different to baseline\n " , $#compares_diff +1 );
334
333
printf ( " %d Tests are new where there is no baseline\n " , $#compares_diff_nobase +1 );
334
+ printf ( " %d Tests pending\n " , $#pendings +1 );
335
335
printf ( " %d Tests failed\n " , $#fails +1 );
336
336
print ( " ================================================================================\n " );
337
337
338
- if ( $#pendings >= 0 ) {
339
- print ( " ================================================================================\n " );
340
- print ( " These tests are pending\n " );
341
- print ( " ================================================================================\n " );
342
- foreach my $key ( @pendings ) {
343
- print ( " $key \n " );
344
- }
345
- }
346
338
if ( $#passes >= 0 ) {
347
339
print ( " ================================================================================\n " );
348
340
print ( " These tests passed\n " );
@@ -370,6 +362,17 @@ sub print_categories {
370
362
print ( " $key \n " );
371
363
}
372
364
}
365
+ if ( $#pendings >= 0 ) {
366
+ print ( " ================================================================================\n " );
367
+ print ( " These tests are pending (some tests may fail in the pending state)\n " );
368
+ print ( " ================================================================================\n " );
369
+ foreach my $key ( @pendings ) {
370
+ my $expect = " " ;
371
+ ` grep $key $expectedfailfile > /dev/null` ;
372
+ if ( $? == 0 ) { $expect = " EXPECTED" ; }
373
+ print ( " $key \t\t $expect \n " );
374
+ }
375
+ }
373
376
if ( $#fails >= 0 ) {
374
377
print ( " ================================================================================\n " );
375
378
print ( " These tests failed\n " );
0 commit comments