upmerge 12726039
This commit is contained in:
commit
62b6118cfa
@ -338,7 +338,30 @@ sub collect_one_suite($)
|
|||||||
{
|
{
|
||||||
if ( open(DISABLED, $skip ) )
|
if ( open(DISABLED, $skip ) )
|
||||||
{
|
{
|
||||||
|
# $^O on Windows considered not generic enough
|
||||||
|
my $plat= (IS_WINDOWS) ? 'windows' : $^O;
|
||||||
|
|
||||||
while ( <DISABLED> )
|
while ( <DISABLED> )
|
||||||
|
{
|
||||||
|
chomp;
|
||||||
|
#diasble the test case if platform matches
|
||||||
|
if ( /\@/ )
|
||||||
|
{
|
||||||
|
if ( /\@$plat/ )
|
||||||
|
{
|
||||||
|
/^\s*(\S+)\s*\@$plat.*:\s*(.*?)\s*$/ ;
|
||||||
|
$disabled{$1}= $2 if not exists $disabled{$1};
|
||||||
|
}
|
||||||
|
elsif ( /\@!(\S*)/ )
|
||||||
|
{
|
||||||
|
if ( $1 ne $plat)
|
||||||
|
{
|
||||||
|
/^\s*(\S+)\s*\@!.*:\s*(.*?)\s*$/ ;
|
||||||
|
$disabled{$1}= $2 if not exists $disabled{$1};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elsif ( /^\s*(\S+)\s*:\s*(.*?)\s*$/ )
|
||||||
{
|
{
|
||||||
chomp;
|
chomp;
|
||||||
if ( /^\s*(\S+)\s*:\s*(.*?)\s*$/ )
|
if ( /^\s*(\S+)\s*:\s*(.*?)\s*$/ )
|
||||||
@ -346,6 +369,7 @@ sub collect_one_suite($)
|
|||||||
$disabled{$1}= $2 if not exists $disabled{$1};
|
$disabled{$1}= $2 if not exists $disabled{$1};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
close DISABLED;
|
close DISABLED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user