⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267417 in webkit


Ignore:
Timestamp:
Sep 22, 2020, 9:53:31 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r267354): Only import resource module on Darwin
https://bugs.webkit.org/show_bug.cgi?id=216823

Patch by Sam Sneddon <Sam Sneddon> on 2020-09-22
Reviewed by Darin Adler.

  • web-platform-tests/tools/serve/serve.py:

Move the resource import to the local point behind the Darwin platform
test. This code is only run once per process initiation, hence it makes
no difference to have the import locally.

Location:
trunk/LayoutTests/imported/w3c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r267402 r267417  
     12020-09-22  Sam Sneddon  <gsnedders@apple.com>
     2
     3        REGRESSION(r267354): Only import resource module on Darwin
     4        https://bugs.webkit.org/show_bug.cgi?id=216823
     5
     6        Reviewed by Darin Adler.
     7
     8        * web-platform-tests/tools/serve/serve.py:
     9        Move the resource import to the local point behind the Darwin platform
     10        test. This code is only run once per process initiation, hence it makes
     11        no difference to have the import locally.
     12
    1132020-09-22  Sam Weinig  <weinig@apple.com>
    214
  • trunk/LayoutTests/imported/w3c/web-platform-tests/tools/serve/serve.py

    r267354 r267417  
    99import os
    1010import platform
    11 import resource
    1211import signal
    1312import socket
     
    422421            # on Darwin, NOFILE starts with a very low limit (256), so bump it up a little
    423422            # by way of comparison, Debian starts with a limit of 1024, Windows 512
     423            import resource  # local, as it only exists on Unix-like systems
    424424            maxfilesperproc = int(subprocess.check_output(
    425425                ["sysctl", "-n", "kern.maxfilesperproc"]
Note: See TracChangeset for help on using the changeset viewer.