unsigned int bytes_count = 0;
for (unsigned int i = 0; i < length; ++i)
if (data[i]) ++bytes_count;
- assert (bytes_count);
+ assert (bytes_count || !length);
hb_blob_destroy (blob);
}
def timeout(p, is_killed):
is_killed['value'] = True
p.kill()
- timer = threading.Timer (2, timeout, [p, is_killed])
+ timer = threading.Timer (5, timeout, [p, is_killed])
try:
timer.start()
global fails
for file in os.listdir (parent_path):
path = os.path.join(parent_path, file)
+ # TODO: Run on all the fonts not just subset related ones
+ if "subset" not in path: continue
print ("running subset fuzzer against %s" % path)
if valgrind:
if 'error' in text:
returncode = 1
- if not valgrind and text.strip ():
+ if (not valgrind or returncode) and text.strip ():
print (text)
if returncode != 0:
run_dir (os.path.join (srcdir, "..", "subset", "data", "fonts"))
-# TODO running these tests very slow tests. Fix and re-enable
-#run_dir (os.path.join (srcdir, "fonts"))
+run_dir (os.path.join (srcdir, "fonts"))
if fails:
print ("%i subset fuzzer related tests failed." % fails)