Skip to content

test failure with gdk-pixbuf 2.38.1 #42

@kenhys

Description

@kenhys

Problem

./test/run-test.sh fails with gdk-pixbuf 2.38.1+dfsg-1.

Even though changed to use gdk_pixbuf_read_pixel_bytes in expected, the result of gcut_object_inspect(G_OBJECT(pixbuf1)) is still different. It seems that pixel-bytes are newly allocated implicitly.

Actual

(no modification in test/gdkcutter-pixbuf/test-gdkcut-pixbuf.c)

........................................F
===============================================================================                                                            
Failure: test_inspect
<expected == gcut_object_inspect(G_OBJECT(pixbuf1))>
expected: <"#<GdkPixbuf:0x5569acba3580 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbc7410)>, pixel-bytes=<NULL>>">                        
  actual: <"#<GdkPixbuf:0x5569acba3580 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbc7410)>, pixel-bytes=<((GBytes*) 0x5569ac7d9d60)>>">  

diff:
? "#<GdkPixbuf:0x5569acba3580 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbc7410)>, pixel-bytes=<NULL                      >>"            
?                                                                                                                                          
                                                                                                  ((GBytes*) 0x5569ac7d9d60)               

./test/gdkcutter-pixbuf/test-gdkcut-pixbuf.c:152: test_inspect(): cut_assert_equal_string_with_free(expected, gcut_object_inspect(((((GObject*) g_type_check_instance_cast ((GTypeInstance*) ((pixbuf1)), (((GType) ((20) << (2))))))))), )                                            
===============================================================================                                                            
...F
===============================================================================                                                            
Failure: test_equal
<expected_strings == actual_strings>
expected: <("equal test", NULL, "<pixbuf1 == pixbuf2> (2)
  expected: <#<GdkPixbuf:0x5569acb9f5e0 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbe2e30)>, pixel-bytes=<((GBytes*) 0x5569ac912d80)>>>  
    actual: <#<GdkPixbuf:0x5569acba3520 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbeca80)>, pixel-bytes=<((GBytes*) 0x5569ac8ffa40)>>>  
 threshold: <2>
diff image: <test-gdkcut-pixbuf-assertions.c-135.png>", "<pixbuf1 == pixbuf2> (2)                                                          
  expected: <#<GdkPixbuf:0x5569acb9f5e0 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbe2e30)>, pixel-bytes=<((GBytes*) 0x5569ac912d80)>>>  
    actual: <#<GdkPixbuf:0x5569acba3520 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbeca80)>, pixel-bytes=<((GBytes*) 0x5569ac8ffa40)>>>  
 threshold: <2>
diff image: <test-gdkcut-pixbuf-assertions.c-135.png>", NULL, NULL, "test-gdkcut-pixbuf-assertions.c:135", "stub_equal")>
  actual: <("equal test", NULL, "<pixbuf1 == pixbuf2> (2)
  expected: <#<GdkPixbuf:0x5569acb9f5e0 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbe2e30)>, pixel-bytes=<((GBytes*) 0x5569ac900090)>>>
    actual: <#<GdkPixbuf:0x5569acba3520 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbeca80)>, pixel-bytes=<((GBytes*) 0x5569ac90f160)>>>
 threshold: <2>
diff image: <test-gdkcut-pixbuf-assertions.c-135.png>", "<pixbuf1 == pixbuf2> (2)
  expected: <#<GdkPixbuf:0x5569acb9f5e0 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbe2e30)>, pixel-bytes=<((GBytes*) 0x5569ac900090)>>>
    actual: <#<GdkPixbuf:0x5569acba3520 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbeca80)>, pixel-bytes=<((GBytes*) 0x5569ac90f160)>>>
 threshold: <2>
diff image: <test-gdkcut-pixbuf-assertions.c-135.png>", NULL, NULL, "test-gdkcut-pixbuf-assertions.c:135", "stub_equal")>

diff:
  ("equal test", NULL, "<pixbuf1 == pixbuf2> (2)
?   expected: <#<GdkPixbuf:0x5569acb9f5e0 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbe2e30)>, pixel-bytes=<((GBytes*) 0x5569ac912d80)>>>
?                                                                                                                                                                                                                                                                             0009     
?     actual: <#<GdkPixbuf:0x5569acba3520 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbeca80)>, pixel-bytes=<((GBytes*) 0x5569ac8 ffa40)>>>
?                                                                                                                                                                                                                                                                            90 16      
   threshold: <2>
  diff image: <test-gdkcut-pixbuf-assertions.c-135.png>", "<pixbuf1 == pixbuf2> (2)
?   expected: <#<GdkPixbuf:0x5569acb9f5e0 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-per-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbe2e30)>, pixel-bytes=<((GBytes*) 0x5569ac912d80)>>>
?                                                                                                                                           
                                                                                                                                  0009     
?     actual: <#<GdkPixbuf:0x5569acba3520 colorspace=<#<GdkColorspace: rgb(GDK_COLORSPACE_RGB:0)>>, n-channels=<4>, has-alpha=<TRUE>, bits-p
er-sample=<8>, width=<100>, height=<100>, rowstride=<400>, pixels=<((gpointer) 0x5569acbeca80)>, pixel-bytes=<((GBytes*) 0x5569ac8 ffa40)>>>
?                                                                                                                                           
                                                                                                                                 90 16      
   threshold: <2>
  diff image: <test-gdkcut-pixbuf-assertions.c-135.png>", NULL, NULL, "test-gdkcut-pixbuf-assertions.c:135", "stub_equal")

./test/./lib/cuttest-assertions.c:284: cut_assert_test_result_helper(): gcut_assert_equal_list_string(expected_strings, actual_strings, )
./test/gdkcutter-pixbuf/test-gdkcut-pixbuf-assertions.c:171: test_equal(): cut_assert_test_result(run_context, 0, CUT_TEST_RESULT_FAILURE, "
equal test", ((void *)0), message, ((void *)0), ((void *)0), (cut_test_context_take_printf(cut_test_context_current_peek(), "%s:%d", "test-g
dkcut-pixbuf-assertions.c", fail_line)), "stub_equal", ((void *)0))
===============================================================================
..............

Finished in 5.055534 seconds (total: 3.842856 seconds)

612 test(s), 2992 assertion(s), 2 failure(s), 0 error(s), 0 pending(s), 0 omission(s), 0 notification(s)
99.6732% passed

Expected

./test/run-test.sh succeeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions