[Webkit-unassigned] [Bug 48043] TestWebKitAPI should detect test hangs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 19 17:44:42 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=48043


Adam Roben (:aroben) <aroben at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #94152|review?, commit-queue?      |review+, commit-queue+
               Flag|                            |




--- Comment #7 from Adam Roben (:aroben) <aroben at apple.com>  2011-05-19 17:44:42 PST ---
(From update of attachment 94152)
View in context: https://bugs.webkit.org/attachment.cgi?id=94152&action=review

> Tools/Scripts/run-api-tests:177
> +        eval {
> +            local $SIG{ALRM} = sub { die "alarm\n" };
> +            alarm $timeout;
> +            waitpid($pid, 0);
> +            alarm 0;
> +            $result = $?;
> +        };
> +        if ($@) {
> +            die unless $@ eq "alarm\n";
> +            kill SIGTERM, $pid or kill SIGKILL, $pid;
> +            $timedOut = 1;
> +        };

It's too bad we can't share more of this code between Mac and Windows.

No need for the semicolon after the if braces.

> Tools/Scripts/run-api-tests:196
> +        if ($@) {
> +            die unless $@ eq "alarm\n";
> +            $timedOut = 1;
> +        };

No need for the semicolon after the closing brace.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list