Created an attachment (id=422104)
v0, xpshell-tests
Some xpcshell tests.
The test will try to open channels for various pre-defined file icons at different sizes.
All tests are expected to succeed.
Some troubles, however:
* On *nix (at least on Ubuntu karmic x86) xpcshell seg faults in exit_handlers after running these tests, no matter if my icon channel patch was applied before or not.
Stack is like this:
#0 0x432dfa40 in ?? ()
#1 0x41758afc in IA__g_hash_table_foreach (hash_table=0x920d720, func=0x42e13460, user_data=0xbfe22984) at /build/buildd/glib2.0-2.22.3/glib/ghash.c:1211
#2 0x42e17333 in ORBit_POA_deactivate () from /usr/lib/libORBit-2.so.0
#3 0x42e17594 in ?? () from /usr/lib/libORBit-2.so.0
#4 0x42e1782d in PortableServer_POA_destroy () from /usr/lib/libORBit-2.so.0
#5 0x42e01c06 in CORBA_ORB_shutdown () from /usr/lib/libORBit-2.so.0
#6 0x42e01d7f in CORBA_ORB_destroy () from /usr/lib/libORBit-2.so.0
#7 0x42e0355f in ?? () from /usr/lib/libORBit-2.so.0
#8 0x4124c05f in __run_exit_handlers (status=153158016, listp=0x4135e304, run_list_atexit=true) at exit.c:78
#9 0x4124c0cf in *__GI_exit (status=0) at exit.c:100
#10 0x41233b5e in __libc_start_main (main=0x804baf6 <main>, argc=18, ubp_av=0xbfe22bc4, init=0x8051c10 <__libc_csu_init>, fini=0x8051c00 <__libc_csu_fini>, rtld_fini=0x4000dd20 <_dl_fini>,
stack_end=0xbfe22bbc) at libc-start.c:252
#11 0x0804a541 in _start () at ../sysdeps/i386/elf/start.S:119
Any ideas about that?
* Cannot test on Mac, as I do not own a Mac.
Test work fine under Win32. Win32 already returns an icon, always.
(In reply to comment #17)
> (From update of attachment 418531 [details])
> Is it possible to add a test on this? Are there any icons that ship with most
> default gtk themes in SVG format?
I don't think you can really make any assumptions about the system/distro in place.
Hence the more general tests.
Created an attachment (id=422104)
v0, xpshell-tests
Some xpcshell tests.
The test will try to open channels for various pre-defined file icons at different sizes.
All tests are expected to succeed.
Some troubles, however: table_foreach (hash_table= 0x920d720, func=0x42e13460, user_data= 0xbfe22984) at /build/ buildd/ glib2.0- 2.22.3/ glib/ghash. c:1211 deactivate () from /usr/lib/ libORBit- 2.so.0 libORBit- 2.so.0 POA_destroy () from /usr/lib/ libORBit- 2.so.0 libORBit- 2.so.0 libORBit- 2.so.0 libORBit- 2.so.0 atexit= true) at exit.c:78 0x4000dd20 <_dl_fini>, end=0xbfe22bbc) at libc-start.c:252 i386/elf/ start.S: 119
* On *nix (at least on Ubuntu karmic x86) xpcshell seg faults in exit_handlers after running these tests, no matter if my icon channel patch was applied before or not.
Stack is like this:
#0 0x432dfa40 in ?? ()
#1 0x41758afc in IA__g_hash_
#2 0x42e17333 in ORBit_POA_
#3 0x42e17594 in ?? () from /usr/lib/
#4 0x42e1782d in PortableServer_
#5 0x42e01c06 in CORBA_ORB_shutdown () from /usr/lib/
#6 0x42e01d7f in CORBA_ORB_destroy () from /usr/lib/
#7 0x42e0355f in ?? () from /usr/lib/
#8 0x4124c05f in __run_exit_handlers (status=153158016, listp=0x4135e304, run_list_
#9 0x4124c0cf in *__GI_exit (status=0) at exit.c:100
#10 0x41233b5e in __libc_start_main (main=0x804baf6 <main>, argc=18, ubp_av=0xbfe22bc4, init=0x8051c10 <__libc_csu_init>, fini=0x8051c00 <__libc_csu_fini>, rtld_fini=
stack_
#11 0x0804a541 in _start () at ../sysdeps/
Any ideas about that?
* Cannot test on Mac, as I do not own a Mac.
Test work fine under Win32. Win32 already returns an icon, always.
(In reply to comment #17)
> (From update of attachment 418531 [details])
> Is it possible to add a test on this? Are there any icons that ship with most
> default gtk themes in SVG format?
I don't think you can really make any assumptions about the system/distro in place.
Hence the more general tests.