[test/api] Set protocol:tap

This commit is contained in:
Behdad Esfahbod 2025-04-05 22:37:34 -06:00
parent 6acb2942e8
commit f69ecc9438
6 changed files with 22 additions and 21 deletions

View file

@ -87,7 +87,6 @@ hb_subset_test_check (hb_face_t *expected,
hb_blob_t *expected_blob, *actual_blob;
expected_blob = hb_face_reference_table (expected, table);
actual_blob = hb_face_reference_table (actual, table);
fprintf(stderr, "comparing %c%c%c%c, expected %d bytes, actual %d bytes\n", HB_UNTAG(table), hb_blob_get_length(expected_blob), hb_blob_get_length (actual_blob));
if (hb_blob_get_length (expected_blob) != 0 ||
hb_blob_get_length (actual_blob) != 0)

View file

@ -166,7 +166,6 @@ static inline void hb_test_assert_blobs_equal (hb_blob_t *expected_blob, hb_blob
int expected = *(raw_expected + i);
int actual = *(raw_actual + i);
if (expected != actual) fprintf(stderr, "+%u %02x != %02x\n", i, expected, actual);
else fprintf(stderr, "+%u %02x\n", i, expected);
}
}
g_assert_cmpint(0, ==, memcmp(raw_expected, raw_actual, expected_length));

View file

@ -117,9 +117,12 @@ foreach source : tests
endif
test(test_name, executable(test_name, source,
cpp_args: cpp_args,
include_directories: [incconfig],
dependencies: deps,
install: false,
), env: env, suite: suite)
cpp_args: cpp_args,
include_directories: [incconfig],
dependencies: deps,
install: false,
),
protocol: 'tap',
env: env,
suite: suite)
endforeach

View file

@ -1018,18 +1018,19 @@ check_set_operations(hb_bool_t a_has_x,
break;
}
printf ("%s%s%s%s %-9s %s%s%s%s == %s [%s]\n",
a_inverted ? "i" : " ",
a_has_page ? "p" : " ",
a_is_null ? "n" : " ",
a_has_x ? "{13}" : "{} ",
op_name,
b_inverted ? "i" : " ",
b_has_page ? "p" : " ",
b_is_null ? "n" : " ",
b_has_x ? "{13}" : "{} ",
should_have_x ? "{13}" : "{} ",
has_expected ? "succeeded" : "failed");
if (FALSE)
printf ("%s%s%s%s %-9s %s%s%s%s == %s [%s]\n",
a_inverted ? "i" : " ",
a_has_page ? "p" : " ",
a_is_null ? "n" : " ",
a_has_x ? "{13}" : "{} ",
op_name,
b_inverted ? "i" : " ",
b_has_page ? "p" : " ",
b_is_null ? "n" : " ",
b_has_x ? "{13}" : "{} ",
should_have_x ? "{13}" : "{} ",
has_expected ? "succeeded" : "failed");
hb_set_destroy (a);
hb_set_destroy (b);

View file

@ -80,7 +80,7 @@ test_subset_name_overrides (void)
char str6[] = "Roboto-Bold";
char str12[] = "Non ascii test Ü";
char str16[] = "Roboto-test-inserting";
hb_set_t *name_ids = hb_set_create();
hb_face_t *face_subset;
hb_set_add_range (name_ids, 0, 13);

View file

@ -187,7 +187,6 @@ test_hb_repack_with_cy_struct (void)
hb_face_t *face_expected = hb_test_open_font_file ("fonts/repacker_expected.otf");
hb_blob_t *expected_blob = hb_face_reference_table (face_expected, HB_TAG ('G','S','U','B'));
fprintf(stderr, "expected %d bytes, actual %d bytes\n", hb_blob_get_length(expected_blob), hb_blob_get_length (result));
if (hb_blob_get_length (expected_blob) != 0 ||
hb_blob_get_length (result) != 0)