mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-07 04:38:00 +00:00
handlers when a thread is cancelled which has the side effect that programs linked with librt fail on Fedora Core 2 due to librt having been built against the NPTL header instead of the old pthread headers. This change extends valgrind's libpthread.so to handle both the old and new style cleanup handlers in a similar way to NPTL and seems to be sufficient to get programs linked with librt working again. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2405
84 lines
3.0 KiB
Makefile
84 lines
3.0 KiB
Makefile
##---------------------------------------------------------------------------
|
|
## These test core error checking, eg. "silly values" for malloc/calloc,
|
|
## pthread errors (and suppressions), signal handling errors, invalid fds for
|
|
## blocking syscalls, etc.
|
|
##---------------------------------------------------------------------------
|
|
|
|
noinst_SCRIPTS = filter_stderr filter_fdleak
|
|
|
|
EXTRA_DIST = $(noinst_SCRIPTS) \
|
|
erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
|
|
fdleak_cmsg.stderr.exp fdleak_cmsg.vgtest \
|
|
fdleak_creat.stderr.exp fdleak_creat.vgtest \
|
|
fdleak_dup.stderr.exp fdleak_dup.vgtest \
|
|
fdleak_dup2.stderr.exp fdleak_dup2.vgtest \
|
|
fdleak_fcntl.stderr.exp fdleak_fcntl.vgtest \
|
|
fdleak_ipv4.stderr.exp fdleak_ipv4.stdout.exp fdleak_ipv4.vgtest \
|
|
fdleak_open.stderr.exp fdleak_open.vgtest \
|
|
fdleak_pipe.stderr.exp fdleak_pipe.vgtest \
|
|
fdleak_socketpair.stderr.exp fdleak_socketpair.vgtest \
|
|
pth_atfork1.stderr.exp pth_atfork1.stdout.exp pth_atfork1.vgtest \
|
|
pth_cancel1.stderr.exp pth_cancel1.stdout.exp pth_cancel1.vgtest \
|
|
pth_cancel2.stderr.exp pth_cancel2.vgtest \
|
|
pth_cvsimple.stderr.exp pth_cvsimple.stdout.exp pth_cvsimple.vgtest \
|
|
pth_empty.stderr.exp pth_empty.vgtest \
|
|
pth_exit.stderr.exp pth_exit.vgtest \
|
|
pth_mutexspeed.stderr.exp \
|
|
pth_mutexspeed.stdout.exp pth_mutexspeed.vgtest \
|
|
pth_once.stderr.exp pth_once.stdout.exp pth_once.vgtest \
|
|
sigkill.stderr.exp sigkill.vgtest \
|
|
res_search.stderr.exp res_search.stdout.exp res_search.vgtest \
|
|
vgprintf.stderr.exp vgprintf.stdout.exp vgprintf.vgtest
|
|
|
|
check_PROGRAMS = \
|
|
erringfds fdleak_cmsg fdleak_creat fdleak_dup fdleak_dup2 \
|
|
fdleak_fcntl fdleak_ipv4 fdleak_open fdleak_pipe \
|
|
fdleak_socketpair sigkill res_search \
|
|
pth_atfork1 pth_cancel1 pth_cancel2 pth_cvsimple pth_empty \
|
|
pth_exit pth_mutexspeed pth_once \
|
|
as_mmap as_shm \
|
|
vgprintf
|
|
|
|
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g -O0 -I$(top_srcdir)/include
|
|
AM_CXXFLAGS = $(AM_CFLAGS)
|
|
|
|
vgprintf_SOURCES = vgprintf.c
|
|
|
|
# Client address space checks
|
|
as_mmap_SOURCES = as_mmap.c
|
|
as_shm_SOURCES = as_shm.c
|
|
|
|
# Leak tests
|
|
fdleak_cmsg_SOURCES = fdleak_cmsg.c
|
|
fdleak_creat_SOURCES = fdleak_creat.c
|
|
fdleak_dup_SOURCES = fdleak_dup.c
|
|
fdleak_dup2_SOURCES = fdleak_dup2.c
|
|
fdleak_fcntl_SOURCES = fdleak_fcntl.c
|
|
fdleak_ipv4_SOURCES = fdleak_ipv4.c
|
|
fdleak_open_SOURCES = fdleak_open.c
|
|
fdleak_pipe_SOURCES = fdleak_pipe.c
|
|
fdleak_socketpair_SOURCES = fdleak_socketpair.c
|
|
sigkill_SOURCES = sigkill.c
|
|
|
|
# Pthread ones
|
|
pth_atfork1_SOURCES = pth_atfork1.c
|
|
pth_atfork1_LDADD = -lpthread
|
|
pth_cancel1_SOURCES = pth_cancel1.c
|
|
pth_cancel1_LDADD = -lpthread
|
|
pth_cancel2_SOURCES = pth_cancel2.c
|
|
pth_cancel2_LDADD = -lpthread
|
|
pth_cvsimple_SOURCES = pth_cvsimple.c
|
|
pth_cvsimple_LDADD = -lpthread
|
|
pth_empty_SOURCES = pth_empty.c
|
|
pth_empty_LDADD = -lpthread
|
|
pth_exit_SOURCES = pth_exit.c
|
|
pth_exit_LDADD = -lpthread
|
|
pth_mutexspeed_SOURCES = pth_mutexspeed.c
|
|
pth_mutexspeed_LDADD = -lpthread
|
|
pth_once_SOURCES = pth_once.c
|
|
pth_once_LDADD = -lpthread
|
|
res_search_SOURCES = res_search.c
|
|
res_search_LDADD = -lresolv -lpthread
|
|
|
|
|