Changeset 116088 in webkit


Ignore:
Timestamp:
May 4, 2012 6:16:56 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r116008) old-run-webkit-tests broken
https://bugs.webkit.org/show_bug.cgi?id=85597

Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-05-04
Reviewed by Simon Hausmann.

Reinstate libraryContainsSymbol.

  • Scripts/webkitperl/features.pm:

(libraryContainsSymbol):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r116085 r116088  
     12012-05-04  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
     2
     3        REGRESSION(r116008) old-run-webkit-tests broken
     4        https://bugs.webkit.org/show_bug.cgi?id=85597
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Reinstate libraryContainsSymbol.
     9
     10        * Scripts/webkitperl/features.pm:
     11        (libraryContainsSymbol):
     12
    1132012-05-04  Zoltan Horvath  <zoltan@webkit.org>
    214
  • trunk/Tools/Scripts/webkitperl/features.pm

    r116008 r116088  
    4646}
    4747
     48sub libraryContainsSymbol($$)
     49{
     50    my ($path, $symbol) = @_;
     51
     52    if (isCygwin() or isWindows()) {
     53        # FIXME: Implement this for Windows.
     54        return 0;
     55    }
     56
     57    my $foundSymbol = 0;
     58    if (-e $path) {
     59        open NM, "-|", nmPath(), $path or die;
     60        while (<NM>) {
     61            $foundSymbol = 1 if /$symbol/; # FIXME: This should probably check for word boundaries before/after the symbol name.
     62        }
     63        close NM;
     64    }
     65    return $foundSymbol;
     66}
     67
    4868sub hasFeature($$)
    4969{
Note: See TracChangeset for help on using the changeset viewer.