Opened 9 years ago

Closed 2 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 Changed 9 years ago by dmik

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 Changed 9 years ago by Silvan Scherrer

Component: *none

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

comment:3 Changed 9 years ago by Silvan Scherrer

Component: *noneglib

comment:4 Changed 8 years ago by Silvan Scherrer

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 Changed 2 years ago by Silvan Scherrer

Resolution: wontfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.