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

Changeset 238534 in webkit


Ignore:
Timestamp:
Nov 26, 2018, 5:02:42 PM (8 years ago)
Author:
Jonathan Bedard
Message:

webkitpy: Race condition in ServerProcess tests
https://bugs.webkit.org/show_bug.cgi?id=191989
<rdar://problem/45536844>

Reviewed by Lucas Forschler.

Serializing these tests to prevent the race conditions.

  • Scripts/webkitpy/port/server_process_unittest.py:

(TestServerProcess.serial_test_basic):
(TestServerProcess.serial_test_read_after_process_exits):
(TestServerProcess.serial_test_process_crashing):
(TestServerProcess.serial_test_process_crashing_no_data):
(TestServerProcess.test_basic): Deleted.
(TestServerProcess.test_read_after_process_exits): Deleted.
(TestServerProcess.test_process_crashing): Deleted.
(TestServerProcess.test_process_crashing_no_data): Deleted.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r238532 r238534  
     12018-11-26  Jonathan Bedard  <jbedard@apple.com>
     2
     3        webkitpy: Race condition in ServerProcess tests
     4        https://bugs.webkit.org/show_bug.cgi?id=191989
     5        <rdar://problem/45536844>
     6
     7        Reviewed by Lucas Forschler.
     8
     9        Serializing these tests to prevent the race conditions.
     10
     11        * Scripts/webkitpy/port/server_process_unittest.py:
     12        (TestServerProcess.serial_test_basic):
     13        (TestServerProcess.serial_test_read_after_process_exits):
     14        (TestServerProcess.serial_test_process_crashing):
     15        (TestServerProcess.serial_test_process_crashing_no_data):
     16        (TestServerProcess.test_basic): Deleted.
     17        (TestServerProcess.test_read_after_process_exits): Deleted.
     18        (TestServerProcess.test_process_crashing): Deleted.
     19        (TestServerProcess.test_process_crashing_no_data): Deleted.
     20
    1212018-11-26  Aakash Jain  <aakash_jain@apple.com>
    222
  • trunk/Tools/Scripts/webkitpy/port/server_process_unittest.py

    r234130 r238534  
    9999
    100100class TestServerProcess(unittest.TestCase):
    101     def test_basic(self):
     101    def serial_test_basic(self):
    102102        # Give -u switch to force stdout and stderr to be unbuffered for Windows
    103103        cmd = [sys.executable, '-uc', 'import sys; print "stdout"; print >>sys.stderr, "stderr"; sys.stdin.readline();']
     
    129129        proc.stop(0)
    130130
    131     def test_read_after_process_exits(self):
     131    def serial_test_read_after_process_exits(self):
    132132        cmd = [sys.executable, '-c', 'import sys; print "stdout"; print >>sys.stderr, "stderr";']
    133133        host = SystemHost()
     
    147147        proc.stop(0)
    148148
    149     def test_process_crashing(self):
     149    def serial_test_process_crashing(self):
    150150        # Give -u switch to force stdout to be unbuffered for Windows
    151151        cmd = [sys.executable, '-uc', 'import sys; print "stdout 1"; print "stdout 2"; print "stdout 3"; sys.stdin.readline(); sys.exit(1);']
     
    173173        proc.stop(0)
    174174
    175     def test_process_crashing_no_data(self):
     175    def serial_test_process_crashing_no_data(self):
    176176        cmd = [sys.executable, '-c',
    177177               'import sys; sys.stdin.readline(); sys.exit(1);']
Note: See TracChangeset for help on using the changeset viewer.