Changeset 190412 in webkit


Ignore:
Timestamp:
Oct 1, 2015 10:16:40 AM (8 years ago)
Author:
ap@apple.com
Message:

[Mac] Make run-api-tests work with System Integrity Protection
https://bugs.webkit.org/show_bug.cgi?id=149711
rdar://problem/22928202

Reviewed by Dan Bernstein.

  • Scripts/run-api-tests:

(runTest):
(archCommandLineArgumentsForRestrictedEnvironmentVariables):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r190411 r190412  
     12015-10-01  Alexey Proskuryakov  <ap@apple.com>
     2
     3        [Mac] Make run-api-tests work with System Integrity Protection
     4        https://bugs.webkit.org/show_bug.cgi?id=149711
     5        rdar://problem/22928202
     6
     7        Reviewed by Dan Bernstein.
     8
     9        * Scripts/run-api-tests:
     10        (runTest):
     11        (archCommandLineArgumentsForRestrictedEnvironmentVariables):
     12
    1132015-10-01  Daniel Bates  <dabates@apple.com>
    214
  • trunk/Tools/Scripts/run-api-tests

    r189934 r190412  
    4141sub runTestsBySuite(\@);
    4242sub prepareEnvironmentForRunningTestTool();
     43sub archCommandLineArgumentsForRestrictedEnvironmentVariables();
    4344sub testToolPaths();
    4445
     
    197198            $pid = open3($childIn, $childOut, $childErr, qw(xcrun -sdk iphonesimulator sim --environment=merge), @commonArguments) or die "Failed to run test: $test.";
    198199        } elsif (isAppleMacWebKit() && architecture()) {
    199             $pid = open3($childIn, $childOut, $childErr, "arch", "-" . architecture(), @commonArguments) or die "Failed to run test: $test.";
     200            $pid = open3($childIn, $childOut, $childErr, "arch", "-" . architecture(), archCommandLineArgumentsForRestrictedEnvironmentVariables(), @commonArguments) or die "Failed to run test: $test.";
    200201        } else {
    201202            $pid = open3($childIn, $childOut, $childErr, @commonArguments) or die "Failed to run test: $test.";
     
    348349}
    349350
     351sub archCommandLineArgumentsForRestrictedEnvironmentVariables()
     352{
     353    my @arguments = ();
     354    foreach my $key (keys(%ENV)) {
     355        if ($key =~ /^DYLD_/) {
     356            push @arguments, "-e", "$key=$ENV{$key}";
     357        }
     358    }
     359    return @arguments;
     360}
     361
    350362sub testToolPaths()
    351363{
Note: See TracChangeset for help on using the changeset viewer.