]> git.ipfire.org Git - thirdparty/glibc.git/commit - support/xmalloc.c
support: Introduce new subdirectory for test infrastructure
authorFlorian Weimer <fweimer@redhat.com>
Fri, 9 Dec 2016 07:18:27 +0000 (08:18 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 9 Dec 2016 07:18:27 +0000 (08:18 +0100)
commitc23de0aacbeaa7a091609b35764bed931475a16d
treebe4396f71292ee7a509912d70e74323d1587d227
parentc03073774f915fe7841c2b551fe304544143470f
support: Introduce new subdirectory for test infrastructure

The new test driver in <support/test-driver.c> has feature parity with
the old one.  The main difference is that its hooking mechanism is
based on functions and function pointers instead of macros.  This
commit also implements a new environment variable, TEST_COREDUMPS,
which disables the code which disables coredumps (that is, it enables
them if the invocation environment has not disabled them).

<test-skeleton.c> defines wrapper functions so that it is possible to
use existing macros with the new-style hook functionality.

This commit changes only a few test cases to the new test driver, to
make sure that it works as expected.
59 files changed:
ChangeLog
Makeconfig
dirent/opendir-tst1.c
dlfcn/Makefile
dlfcn/bug-atexit3-lib.cc
elf/Makefile
extra-lib.mk
io/tst-open-tmpfile.c
io/tst-posix_fallocate-common.c
libio/tst-fseek.c
malloc/tst-malloc-backtrace.c
malloc/tst-malloc-fork-deadlock.c
malloc/tst-malloc-thread-exit.c
nptl/tst-cancel7.c
nptl/tst-cleanup0.c
posix/tst-posix_fadvise-common.c
rt/tst-shm.c
stdlib/tst-secure-getenv.c
support/Makefile [new file with mode: 0644]
support/README [new file with mode: 0644]
support/README-testing.c [new file with mode: 0644]
support/check.c [new file with mode: 0644]
support/check.h [new file with mode: 0644]
support/delayed_exit.c [new file with mode: 0644]
support/ignore_stderr.c [new file with mode: 0644]
support/oom_error.c [new file with mode: 0644]
support/set_fortify_handler.c [new file with mode: 0644]
support/support.h [new file with mode: 0644]
support/support_test_main.c [new file with mode: 0644]
support/temp_file-internal.h [new file with mode: 0644]
support/temp_file.c [new file with mode: 0644]
support/temp_file.h [new file with mode: 0644]
support/test-driver.c [new file with mode: 0644]
support/test-driver.h [new file with mode: 0644]
support/write_message.c [new file with mode: 0644]
support/xasprintf.c [new file with mode: 0644]
support/xcalloc.c [new file with mode: 0644]
support/xmalloc.c [new file with mode: 0644]
support/xpthread_barrier_destroy.c [new file with mode: 0644]
support/xpthread_barrier_init.c [new file with mode: 0644]
support/xpthread_barrier_wait.c [new file with mode: 0644]
support/xpthread_cancel.c [new file with mode: 0644]
support/xpthread_check_return.c [new file with mode: 0644]
support/xpthread_cond_wait.c [new file with mode: 0644]
support/xpthread_create.c [new file with mode: 0644]
support/xpthread_detach.c [new file with mode: 0644]
support/xpthread_join.c [new file with mode: 0644]
support/xpthread_mutex_lock.c [new file with mode: 0644]
support/xpthread_mutex_unlock.c [new file with mode: 0644]
support/xpthread_sigmask.c [new file with mode: 0644]
support/xpthread_spin_lock.c [new file with mode: 0644]
support/xpthread_spin_unlock.c [new file with mode: 0644]
support/xrealloc.c [new file with mode: 0644]
support/xsignal.h [new file with mode: 0644]
support/xthread.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-fallocate-common.c
sysdeps/unix/sysv/linux/tst-sync_file_range.c
test-skeleton.c
time/bug-getdate1.c