diff --git a/test/api/hb-subset-test.h b/test/api/hb-subset-test.h index 8f32d3dba..5f5cd8d00 100644 --- a/test/api/hb-subset-test.h +++ b/test/api/hb-subset-test.h @@ -58,10 +58,8 @@ hb_subset_test_open_font (const char *font_path) hb_blob_t *blob = hb_blob_create_from_file (path); if (hb_blob_get_length (blob) == 0) - { - printf ("The test font is not found."); - exit (1); - } + g_error ("Font not found."); + hb_face_t *face = hb_face_create (blob, 0); hb_blob_destroy (blob); diff --git a/test/api/test-multithread.c b/test/api/test-multithread.c index 779b762dc..b651b399b 100644 --- a/test/api/test-multithread.c +++ b/test/api/test-multithread.c @@ -149,10 +149,7 @@ main (int argc, char **argv) hb_blob_t *blob = hb_blob_create_from_file (path); if (hb_blob_get_length (blob) == 0) - { - printf ("The test font is not found."); - return 1; - } + g_error ("Font not found."); hb_face_t *face = hb_face_create (blob, 0); font = hb_font_create (face); diff --git a/test/fuzzing/main.cc b/test/fuzzing/main.cc index b42d60c13..f15247cdb 100644 --- a/test/fuzzing/main.cc +++ b/test/fuzzing/main.cc @@ -10,7 +10,7 @@ int main(int argc, char **argv) { const char *font_data = hb_blob_get_data (blob, &len); if (len == 0) { - printf ("The test font is not found."); + printf ("Font not found.\n"); exit (1); }