Commit 8213d05a authored by Bjorn Munch's avatar Bjorn Munch

upmerge 12726039

parents aeec4c7c 1a56b927
...@@ -337,17 +337,41 @@ sub collect_one_suite($) ...@@ -337,17 +337,41 @@ sub collect_one_suite($)
for my $skip (@disabled_collection) for my $skip (@disabled_collection)
{ {
if ( open(DISABLED, $skip ) ) if ( open(DISABLED, $skip ) )
{ {
while ( <DISABLED> ) # $^O on Windows considered not generic enough
{ my $plat= (IS_WINDOWS) ? 'windows' : $^O;
chomp;
if ( /^\s*(\S+)\s*:\s*(.*?)\s*$/ ) while ( <DISABLED> )
{ {
$disabled{$1}= $2 if not exists $disabled{$1}; chomp;
} #diasble the test case if platform matches
} if ( /\@/ )
close DISABLED; {
} 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;
if ( /^\s*(\S+)\s*:\s*(.*?)\s*$/ )
{
$disabled{$1}= $2 if not exists $disabled{$1};
}
}
}
close DISABLED;
}
} }
# Read suite.opt file # Read suite.opt file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment