[test-paint] Print paint-color-glyph
diff --git a/test/api/results/bad-154 b/test/api/results/bad-154
index ce8e4ff..8fbf7f4 100644
--- a/test/api/results/bad-154
+++ b/test/api/results/bad-154
@@ -1,103 +1,135 @@
-# random seed: R02S0cee2d366e5dbd296a38859c4a84c045
+# random seed: R02S8a247191e9c73c84f166b360a40567c1
 # Start of hb tests
 # Start of paint tests
 # Start of ot tests
 start clip rectangle 0 500 500 1e+03
   start transform 1 0 0 1 0 0
     start transform 1 0 -0 1 0 0
+      paint color glyph 154; acting as failed
     end transform
     start clip rectangle 0 500 500 1e+03
       start transform 1 0 -0 1 0 0
+        paint color glyph 154; acting as failed
       end transform
       start clip rectangle 0 500 500 1e+03
         start transform 1 0 -0 1 0 0
+          paint color glyph 154; acting as failed
         end transform
         start clip rectangle 0 500 500 1e+03
           start transform 1 0 -0 1 0 0
+            paint color glyph 154; acting as failed
           end transform
           start clip rectangle 0 500 500 1e+03
             start transform 1 0 -0 1 0 0
+              paint color glyph 154; acting as failed
             end transform
             start clip rectangle 0 500 500 1e+03
               start transform 1 0 -0 1 0 0
+                paint color glyph 154; acting as failed
               end transform
               start clip rectangle 0 500 500 1e+03
                 start transform 1 0 -0 1 0 0
+                  paint color glyph 154; acting as failed
                 end transform
                 start clip rectangle 0 500 500 1e+03
                   start transform 1 0 -0 1 0 0
+                    paint color glyph 154; acting as failed
                   end transform
                   start clip rectangle 0 500 500 1e+03
                     start transform 1 0 -0 1 0 0
+                      paint color glyph 154; acting as failed
                     end transform
                     start clip rectangle 0 500 500 1e+03
                       start transform 1 0 -0 1 0 0
+                        paint color glyph 154; acting as failed
                       end transform
                       start clip rectangle 0 500 500 1e+03
                         start transform 1 0 -0 1 0 0
+                          paint color glyph 154; acting as failed
                         end transform
                         start clip rectangle 0 500 500 1e+03
                           start transform 1 0 -0 1 0 0
+                            paint color glyph 154; acting as failed
                           end transform
                           start clip rectangle 0 500 500 1e+03
                             start transform 1 0 -0 1 0 0
+                              paint color glyph 154; acting as failed
                             end transform
                             start clip rectangle 0 500 500 1e+03
                               start transform 1 0 -0 1 0 0
+                                paint color glyph 154; acting as failed
                               end transform
                               start clip rectangle 0 500 500 1e+03
                                 start transform 1 0 -0 1 0 0
+                                  paint color glyph 154; acting as failed
                                 end transform
                                 start clip rectangle 0 500 500 1e+03
                                   start transform 1 0 -0 1 0 0
+                                    paint color glyph 154; acting as failed
                                   end transform
                                   start clip rectangle 0 500 500 1e+03
                                     start transform 1 0 -0 1 0 0
+                                      paint color glyph 154; acting as failed
                                     end transform
                                     start clip rectangle 0 500 500 1e+03
                                       start transform 1 0 -0 1 0 0
+                                        paint color glyph 154; acting as failed
                                       end transform
                                       start clip rectangle 0 500 500 1e+03
                                         start transform 1 0 -0 1 0 0
+                                          paint color glyph 154; acting as failed
                                         end transform
                                         start clip rectangle 0 500 500 1e+03
                                           start transform 1 0 -0 1 0 0
+                                            paint color glyph 154; acting as failed
                                           end transform
                                           start clip rectangle 0 500 500 1e+03
                                             start transform 1 0 -0 1 0 0
+                                              paint color glyph 154; acting as failed
                                             end transform
                                             start clip rectangle 0 500 500 1e+03
                                               start transform 1 0 -0 1 0 0
+                                                paint color glyph 154; acting as failed
                                               end transform
                                               start clip rectangle 0 500 500 1e+03
                                                 start transform 1 0 -0 1 0 0
+                                                  paint color glyph 154; acting as failed
                                                 end transform
                                                 start clip rectangle 0 500 500 1e+03
                                                   start transform 1 0 -0 1 0 0
+                                                    paint color glyph 154; acting as failed
                                                   end transform
                                                   start clip rectangle 0 500 500 1e+03
                                                     start transform 1 0 -0 1 0 0
+                                                      paint color glyph 154; acting as failed
                                                     end transform
                                                     start clip rectangle 0 500 500 1e+03
                                                       start transform 1 0 -0 1 0 0
+                                                        paint color glyph 154; acting as failed
                                                       end transform
                                                       start clip rectangle 0 500 500 1e+03
                                                         start transform 1 0 -0 1 0 0
+                                                          paint color glyph 154; acting as failed
                                                         end transform
                                                         start clip rectangle 0 500 500 1e+03
                                                           start transform 1 0 -0 1 0 0
+                                                            paint color glyph 154; acting as failed
                                                           end transform
                                                           start clip rectangle 0 500 500 1e+03
                                                             start transform 1 0 -0 1 0 0
+                                                              paint color glyph 154; acting as failed
                                                             end transform
                                                             start clip rectangle 0 500 500 1e+03
                                                               start transform 1 0 -0 1 0 0
+                                                                paint color glyph 154; acting as failed
                                                               end transform
                                                               start clip rectangle 0 500 500 1e+03
                                                                 start transform 1 0 -0 1 0 0
+                                                                  paint color glyph 154; acting as failed
                                                                 end transform
                                                                 start clip rectangle 0 500 500 1e+03
                                                                   start transform 1 0 -0 1 0 0
+                                                                    paint color glyph 154; acting as failed
                                                                   end transform
                                                                   start clip rectangle 0 500 500 1e+03
                                                                   end clip
diff --git a/test/api/results/test-154 b/test/api/results/test-154
index 1a86fe3..f108da8 100644
--- a/test/api/results/test-154
+++ b/test/api/results/test-154
@@ -1,13 +1,15 @@
-# random seed: R02S33c307340a09918aefe09266feb15798
+# random seed: R02S46170a7a8abc3ad07d2b70fd08efc176
 # Start of hb tests
 # Start of paint tests
 # Start of ot tests
 start clip rectangle 0 500 500 1e+03
   start transform 1 0 0 1 0 0
     start transform 1 0 -0 1 0 0
+      paint color glyph 164; acting as failed
     end transform
     start clip rectangle 100 100 900 900
       start transform 1 0 -0 1 0 0
+        paint color glyph 93; acting as failed
       end transform
       start clip rectangle 0 0 1e+03 1e+03
         start transform 1 0 -0 1 0 0
diff --git a/test/api/results/testvf-154 b/test/api/results/testvf-154
index f497751..cd6e9b9 100644
--- a/test/api/results/testvf-154
+++ b/test/api/results/testvf-154
@@ -1,13 +1,15 @@
-# random seed: R02S08067256908fbfc782c2c2c09d648be6
+# random seed: R02Sd6c6e6b574cffce42448b4c7ec9ed3b1
 # Start of hb tests
 # Start of paint tests
 # Start of ot tests
 start clip rectangle 0 500 500 1e+03
   start transform 1 0 0 1 0 0
     start transform 1 0 -0 1 0 0
+      paint color glyph 164; acting as failed
     end transform
     start clip rectangle 100 100 900 900
       start transform 1 0 -0 1 0 0
+        paint color glyph 93; acting as failed
       end transform
       start clip rectangle 0 0 1e+03 1e+03
         start transform 1 0 -0 1 0 0
diff --git a/test/api/test-paint.c b/test/api/test-paint.c
index e1044ed..810b7ac 100644
--- a/test/api/test-paint.c
+++ b/test/api/test-paint.c
@@ -97,6 +97,20 @@
   print (data, "end transform");
 }
 
+static hb_bool_t
+paint_color_glyph (hb_paint_funcs_t *funcs,
+                   void *paint_data,
+                   hb_codepoint_t glyph,
+                   hb_font_t *font,
+                   void *user_data)
+{
+  paint_data_t *data = paint_data;
+
+  print (data, "paint color glyph %u; acting as failed", glyph);
+
+  return FALSE;
+}
+
 static void
 push_clip_glyph (hb_paint_funcs_t *funcs,
                  void *paint_data,
@@ -286,6 +300,7 @@
 
     hb_paint_funcs_set_push_transform_func (funcs, push_transform, NULL, NULL);
     hb_paint_funcs_set_pop_transform_func (funcs, pop_transform, NULL, NULL);
+    hb_paint_funcs_set_color_glyph_func (funcs, paint_color_glyph, NULL, NULL);
     hb_paint_funcs_set_push_clip_glyph_func (funcs, push_clip_glyph, NULL, NULL);
     hb_paint_funcs_set_push_clip_rectangle_func (funcs, push_clip_rectangle, NULL, NULL);
     hb_paint_funcs_set_pop_clip_func (funcs, pop_clip, NULL, NULL);