Changeset 175801 in webkit


Ignore:
Timestamp:
Nov 9, 2014 11:59:26 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

Fix the exception fuzz helper to generate targets in the correct range
https://bugs.webkit.org/show_bug.cgi?id=138544

Patch by Akos Kiss <akiss@inf.u-szeged.hu> on 2014-11-10
Reviewed by Filip Pizlo.

Currently, the script generates exception fuzz targets in the range of
0..($checkCount-1). However, target 0 is never hit, while target 1 is
always outside of the outermost try block of the tests, which therefore
prints unexpected output and results in false failures when fired at.
Additionally, target $checkCount is never generated.

This patch fixes the script to generate targets in the range of
2..$checkCount.

  • Scripts/jsc-stress-test-helpers/js-exception-fuzz:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r175798 r175801  
     12014-11-10  Akos Kiss  <akiss@inf.u-szeged.hu>
     2
     3        Fix the exception fuzz helper to generate targets in the correct range
     4        https://bugs.webkit.org/show_bug.cgi?id=138544
     5
     6        Reviewed by Filip Pizlo.
     7
     8        Currently, the script generates exception fuzz targets in the range of
     9        0..($checkCount-1). However, target 0 is never hit, while target 1 is
     10        always outside of the outermost try block of the tests, which therefore
     11        prints unexpected output and results in false failures when fired at.
     12        Additionally, target $checkCount is never generated.
     13
     14        This patch fixes the script to generate targets in the range of
     15        2..$checkCount.
     16
     17        * Scripts/jsc-stress-test-helpers/js-exception-fuzz:
     18
    1192014-11-09  Csaba Osztrogonác  <ossy@webkit.org>
    220
  • trunk/Tools/Scripts/jsc-stress-test-helpers/js-exception-fuzz

    r171350 r175801  
    101101
    102102for (my $iteration = 0; $iteration < $repeat; ++$iteration) {
    103     my $target = int(rand() * $checkCount);
     103    my $target = int(rand() * ($checkCount - 1)) + 2;
    104104    if ($verbose) {
    105105        print "iteration($iteration) target($target): Running.\n";
Note: See TracChangeset for help on using the changeset viewer.