Imported Upstream version 3.4.0
[platform/upstream/harfbuzz.git] / test / api / test-subset-hmtx.c
index 1b51dc2..28cca00 100644 (file)
@@ -162,9 +162,8 @@ test_subset_invalid_hmtx (void)
   hb_set_add (codepoints, 'b');
   hb_set_add (codepoints, 'c');
 
-  subset = hb_subset (face, input);
-  g_assert (subset);
-  g_assert (subset == hb_face_get_empty ());
+  subset = hb_subset_or_fail (face, input);
+  g_assert (!subset);
 
   hb_subset_input_destroy (input);
   hb_face_destroy (subset);