Changeset 232810 in webkit


Ignore:
Timestamp:
Jun 13, 2018 2:21:21 PM (6 years ago)
Author:
mark.lam@apple.com
Message:

Gardening: Layout Test js/error-should-not-strong-reference-global-object.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=186372

Not reviewed.

Speculative fix to green the bots plus improved the error message logging to get
more info if this fails again.

  • js/error-should-not-strong-reference-global-object.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r232806 r232810  
     12018-06-13  Mark Lam  <mark.lam@apple.com>
     2
     3        Gardening: Layout Test js/error-should-not-strong-reference-global-object.html is a flaky failure
     4        https://bugs.webkit.org/show_bug.cgi?id=186372
     5
     6        Not reviewed.
     7
     8        Speculative fix to green the bots plus improved the error message logging to get
     9        more info if this fails again.
     10
     11        * js/error-should-not-strong-reference-global-object.html:
     12
    1132018-06-13  Timothy Hatcher  <timothy@apple.com>
    214
  • trunk/LayoutTests/js/error-should-not-strong-reference-global-object.html

    r232314 r232810  
    4141    run();
    4242
    43 $vm.gc();
    44 // We shouldn't have more than 10% of the global objects we allocated.
    45 if ($vm.globalObjectCount() >= 51)
    46     throw new Error("There are more global objects than there should be");
     43setTimeout(() => {
     44    $vm.gc();
     45    // We shouldn't have more than 10% of the global objects we allocated.
     46    var globalObjectCount = $vm.globalObjectCount();
     47    if (globalObjectCount >= 51)
     48        throw new Error("There are more global objects than there should be: actual count = " + globalObjectCount);
     49}, 1);
    4750
    4851</script>
Note: See TracChangeset for help on using the changeset viewer.