Changeset 149555 in webkit


Ignore:
Timestamp:
May 4, 2013 12:54:40 AM (11 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK] Catch select.error exceptions in parse_output_lines
https://bugs.webkit.org/show_bug.cgi?id=115253

Reviewed by Gustavo Noronha Silva.

Catch any select.error exceptions when waiting for the file descriptor to become readable when parsing the
output lines in common.parse_output_lines. These are currently being thrown when running the GTK unit tests on
builders, but are not fatal. Because of that they are at the moment only logged (writing out the file descriptor,
error code and the error message) and the loop is re-entered.

  • gtk/common.py:

(parse_output_lines):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r149554 r149555  
     12013-05-04  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [GTK] Catch select.error exceptions in parse_output_lines
     4        https://bugs.webkit.org/show_bug.cgi?id=115253
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        Catch any select.error exceptions when waiting for the file descriptor to become readable when parsing the
     9        output lines in common.parse_output_lines. These are currently being thrown when running the GTK unit tests on
     10        builders, but are not fatal. Because of that they are at the moment only logged (writing out the file descriptor,
     11        error code and the error message) and the loop is re-entered.
     12
     13        * gtk/common.py:
     14        (parse_output_lines):
     15
    1162013-05-04  Zan Dobersek  <zdobersek@igalia.com>
    217
  • trunk/Tools/gtk/common.py

    r141779 r149555  
    115115    read_set = [fd]
    116116    while read_set:
    117         rlist, wlist, xlist = select.select(read_set, [], [])
     117        try:
     118            rlist, wlist, xlist = select.select(read_set, [], [])
     119        except select.error as e:
     120            parse_line_callback("WARNING: error while waiting for fd %d to become readable\n" % fd)
     121            parse_line_callback("    error code: %d, error message: %s\n" % (e[0], e[1]))
     122            continue
    118123
    119124        if fd in rlist:
Note: See TracChangeset for help on using the changeset viewer.