File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1673,6 +1673,13 @@ def ensure(self):
1673
1673
tar .extractall (path = self .clusterfuzz_dir )
1674
1674
tar .close ()
1675
1675
1676
+ def can_run_on_wasm (self , wasm ):
1677
+ # Do not run ClusterFuzz in the first seconds of fuzzing: the first time
1678
+ # it runs is very slow (to build the bundle), which is annoying when you
1679
+ # are just starting the fuzzer and looking for any obvious problems.
1680
+ seconds = 30
1681
+ return time .time () - start_time > seconds
1682
+
1676
1683
1677
1684
# Tests linking two wasm files at runtime, and that optimizations do not break
1678
1685
# anything. This is similar to Split(), but rather than split a wasm file into
@@ -2058,6 +2065,8 @@ def get_random_opts():
2058
2065
print ('The v8 shell, d8, must be in the path' )
2059
2066
sys .exit (1 )
2060
2067
2068
+ start_time = time .time ()
2069
+
2061
2070
if __name__ == '__main__' :
2062
2071
# if we are given a seed, run exactly that one testcase. otherwise,
2063
2072
# run new ones until we fail
@@ -2083,7 +2092,6 @@ def get_random_opts():
2083
2092
total_wasm_size = 0
2084
2093
total_input_size = 0
2085
2094
total_input_size_squares = 0
2086
- start_time = time .time ()
2087
2095
while True :
2088
2096
counter += 1
2089
2097
if given_seed is not None :
You can’t perform that action at this time.
0 commit comments