Unit tests for the libraries code.

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Sun Jan 27 11:39:12 CET 2008


MaLiK wrote:
> Thanks for the quick replay, and the very good suggestion. 
> You have absolutly right. I've prepared the patch file.

I've tried to apply the patch today. I had to tweak some parts to make 
it work with CUnit 2.0, see attached file. Nevertheless, the tests still 
don't work properly

----
(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_get_file: 
assertion `XFCE_IS_DESKTOP_ENTRY (desktop_entry)' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_get_int: 
assertion `XFCE_IS_DESKTOP_ENTRY (desktop_entry)' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_get_int: 
assertion `value_return != NULL' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_get_int: 
assertion `value_return != NULL' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_get_string: 
assertion `XFCE_IS_DESKTOP_ENTRY (desktop_entry)' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_get_string: 
assertion `value_return != NULL' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_get_string: 
assertion `value_return != NULL' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_get_string: 
assertion `XFCE_IS_DESKTOP_ENTRY (desktop_entry)' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_get_string: 
assertion `value_return != NULL' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_get_string: 
assertion `value_return != NULL' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_new: 
assertion `file != NULL' failed

(process:9037): libxfce4util-CRITICAL **: xfce_desktop_entry_new: 
assertion `file != NULL' failed
.......

GLib-ERROR **: gmem.c:154: failed to allocate 4294967280 bytes
aborting...
/bin/sh: line 4:  9037 Trace/breakpoint trap   ${dir}$tst
FAIL: AutomatedTest
----

plus several more critical warnings. Please grab the attached patch and 
update it so it does not spit out critical warnings and does not crash.

> Gretz
> MaLiK

Thanks,
Benedikt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libxfce4util-cunit.patch
Type: text/x-patch
Size: 43442 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20080127/82869d18/attachment.bin>


More information about the Xfce4-dev mailing list