[poppler] unit test for GLib bindings
Kouhei Sutou
kou at cozmixng.org
Fri Apr 24 21:49:06 PDT 2009
Hi,
In <1239535289.4248.3.camel at charmaleon>
"Re: [poppler] unit test for GLib bindings" on Sun, 12 Apr 2009 13:21:29 +0200,
Carlos Garcia Campos <carlosgc at gnome.org> wrote:
>> Please use '--verbose=verbose' (or '-v v') option. Cutter
>> shows test names with the options:
>
> hmm, the verbose mode should be enabled by default, the output looks
> more useful to me.
OK. I've enabled it by default.
> ok, I get a different error now, I don't know whether is a problem in
> the test itself or a poppler bug:
>
> $ glib/test/run-test.sh --verbose=verbose
> test-layer:
> test_nested: .: (0.011687)
> test_title: .: (0.000742)
> test_visible: .: (0.000548)
> test-form-field:
> test_multi_line_text: .: (0.001826)
> test_combo_choice: .: (0.001805)
> test_list_choice: .: (0.001848)
> test_check_button: .: (0.001720)
> test_radio_button: .: (0.001820)
> test_general: .: (0.001495)
> test_normal_text: .: (0.001708)
> test_file_select_text: .: (0.001698)
> test_push_button: .: (0.001464)
> test_normal_password_text: .: (0.001621)
> test-page:
> test_index_multi_pages: .: (0.000416)
> test_get_size: .: (0.000335)
> test_render_pixbuf: .: (0.004318)
> test_transition: .: (0.000640)
> test_index_single_page: .: (0.000311)
> test_get_form_field_mapping: .: (0.003905)
> test_get_text: .: (0.002655)
> test-document:
> test_attachment: F: (0.003755)
>
> (cutter:23905): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
>
> (cutter:23905): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
> test_action: .: (0.000563)
> test_new_from_data: .: (0.000389)
> test_property:
> (cutter:23905): GLib-CRITICAL **: g_regex_split_full: assertion `string != NULL' failed
>
> (cutter:23905): GLib-CRITICAL **: g_regex_split_full: assertion `string != NULL' failed
> !CRASH!!!
>
>
> 1) Failure: test_attachment
> <attachment_equal(expected[i], actual[i]) == TRUE>
> expected: <(#<PopplerAttachment name=<U�����u���]��c�����0�>, description=<�I>, size=<147580976>, mtime=<147581360>, ctime=<-1209563984>, checksum=<��>>, #<PopplerAttachment name=<U�����u���]��c�����0�>, description=<��>, size=<0>, mtime=<147241504>, ctime=<0>, checksum=< �>>)>
> actual: <(#<PopplerAttachment name=<hello.html>, description=<hello.html>, size=<300>, mtime=<0>, ctime=<0>, checksum=<>>, #<PopplerAttachment name=<hello.txt>, description=<hello.txt>, size=<13>, mtime=<0>, ctime=<0>, checksum=<>>)>
> glib/test/test-document.c:562: test_attachment(): gcut_assert_equal_list(expected, actual, attachment_equal, attachment_inspect, ((void *)0))
>
> Finished in 0.597506 seconds (total: 0.047269 seconds)
>
> 24 test(s), 146 assertion(s), 1 failure(s), 0 error(s), 0 pending(s), 0 omission(s), 0 notification(s)
> 91.6667% passed
>
> I've tried the attachment document and it works.
Could you try with CUTTER_DEBUG=yes?
% CUTTER_DEBUG=yes glib/test/run-test.sh
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(no debugging symbols found)
(gdb) r
...
(gdb) bt
...
Thanks,
--
kou
More information about the poppler
mailing list