winapi_test: Simplify the code that builds the list of headers to process.

This commit is contained in:
Francois Gouget 2009-05-17 13:26:16 +02:00 committed by Alexandre Julliard
parent b51d03125d
commit d537476894
1 changed files with 13 additions and 22 deletions

View File

@ -47,32 +47,23 @@ if ($options->pack) {
push @tests, "pack";
}
my @files = ();
my @files;
{
my %files;
my %test_dirs;
foreach my $test (@tests) {
my @test_dirs = $tests->get_test_dirs($test);
foreach my $test_dir (@test_dirs) {
my @headers = $tests->get_section($test_dir, $test, "header");
foreach my $header (@headers) {
$files{"include/$header"} = 1;
}
}
}
foreach my $test (@tests) {
my @test_dirs = $tests->get_test_dirs($test);
foreach my $test_dir (@test_dirs) {
my @headers = $tests->get_section($test_dir, $test, "header");
foreach my $header (@headers) {
if($files{"include/$header"}) {
foreach my $test (@tests)
{
foreach my $test_dir ($tests->get_test_dirs($test))
{
foreach my $header ($tests->get_section($test_dir, $test, "header"))
{
if (!$files{$header})
{
push @files, "include/$header";
$files{"include/$header"} = 0;
}
}
}
$files{$header} = 1;
}
}
}
}
}