Opened 10 years ago

Closed 3 years ago

#43 closed task (wontfix)

glib: Make tests work

Reported by: dmik Owned by:
Priority: major Milestone:
Component: glib Version:
Severity: highest Keywords:
Cc:

Description

Currently, modular tests in glib don't work (and don't fully build). As this breaks the overall build process, the current workaround is to completely disable tests with the --disable-modular-tests configure option for now. This ticket is to make them function instead.

Change History (5)

comment:1 by dmik, 10 years ago

In particular (as mentioned in #14), when making tests for the gio module, we get the following crash in the helper utility:

  GEN      test_resources.c
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_rwlock_init': Invalid argument.  Aborting.

Killed by SIGABRT
pid=0xde21 ppid=0xde00 tid=0x0001 slot=0x00e7 pri=0x0200 mc=0x0001 ps=0x0010
D:\CODING\PORTS\GLIB\TRUNK-BUILD\GIO\GLIB-COMPILE-RESOURCES.EXE
Process dumping was disabled, use DUMPPROC / PROCDUMP to enable it.
[1]   Abort trap              sh.exe ../../lib...
make[4]: *** [test_resources.c] Error 134
make[4]: *** Waiting for unfinished jobs....

This is because pthread_rwlock_init is not supported by our pthread implementation. Perhaps, we should address that by making these APIs work in pthread or simply disable this particular test.

comment:2 by Silvan Scherrer, 10 years ago

Component: *none

see also http://trac.netlabs.org/ports/changeset/982. In gettext we also had to disable pthread RWLOCK

comment:3 by Silvan Scherrer, 10 years ago

Component: *noneglib

comment:4 by Silvan Scherrer, 8 years ago

Severity: highest

I doubt this is still needed, as pthreads_rwlock_init is now available. And in gettext it's enabled as well now.

comment:5 by Silvan Scherrer, 3 years ago

Resolution: wontfix
Status: newclosed

this is all for a really outdated glib2 and not relevant anymore.

Note: See TracTickets for help on using tickets.