Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

  1. #---------------------------------------------------------------------
  2. #package inftest;
  3. #
  4. # Copyright (c) Microsoft Corporation. All rights reserved.
  5. #
  6. # Version:
  7. # 1.00 01/21/2002 DMiura: initial version
  8. #
  9. #---------------------------------------------------------------------
  10. use strict;
  11. use warnings;
  12. # Call inftest with passed parameters
  13. print "Calling: inftest.exe @ARGV\n";
  14. my @results = `inftest.exe @ARGV` ;
  15. # Exception list for JPN only
  16. my @exceptions = qw(imjpch.dic imjpsb.dic imjpln.dic imjpnm.dic imjptk.dic imjpst.dic imjpzp.dic imjpgn.grm);
  17. my $exceptions = join '|',map{ quotemeta($_) } @exceptions;
  18. print $exceptions;
  19. # Test for language and exception list. Print results to std out.
  20. foreach my $result (@results) {
  21. if($result =~ /$exceptions/io) {
  22. $result =~ s/:(\w+|\s+)*:\s!!!/- JPN Win64 only exception/i;
  23. print $result;
  24. } elsif ($result =~ s/Errors were encountered with obj\\ia64\\layout\.inf//i) {
  25. } else {
  26. print $result;
  27. }
  28. }