You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Florian Weimer c54d864903 support: Include <support/descriptors.h> in support_descriptors.c 7 years ago
..
Makefile nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 7 years ago
README support: Add timespec.h 7 years ago
README-testing.c support: Introduce new subdirectory for test infrastructure 9 years ago
blob_repeat.c Update copyright dates with scripts/update-copyrights. 7 years ago
blob_repeat.h Update copyright dates with scripts/update-copyrights. 7 years ago
capture_subprocess.h support: Add support_capture_subprogram 7 years ago
check.c Update copyright dates with scripts/update-copyrights. 7 years ago
check.h Update copyright dates with scripts/update-copyrights. 7 years ago
check_addrinfo.c Update copyright dates with scripts/update-copyrights. 7 years ago
check_dns_packet.c Update copyright dates with scripts/update-copyrights. 7 years ago
check_hostent.c Update copyright dates with scripts/update-copyrights. 7 years ago
check_netent.c Update copyright dates with scripts/update-copyrights. 7 years ago
check_nss.h Update copyright dates with scripts/update-copyrights. 7 years ago
delayed_exit.c Update copyright dates with scripts/update-copyrights. 7 years ago
descriptors.h Update copyright dates with scripts/update-copyrights. 7 years ago
echo-container.c Update copyright dates with scripts/update-copyrights. 7 years ago
format_nss.h Update copyright dates with scripts/update-copyrights. 7 years ago
ignore_stderr.c Update copyright dates with scripts/update-copyrights. 7 years ago
links-dso-program-c.c nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 7 years ago
links-dso-program.cc nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 7 years ago
namespace.h nss_files: Fix /etc/aliases null pointer dereference [BZ #24059] 7 years ago
next_to_fault.c Update copyright dates with scripts/update-copyrights. 7 years ago
next_to_fault.h Update copyright dates with scripts/update-copyrights. 7 years ago
oom_error.c Update copyright dates with scripts/update-copyrights. 7 years ago
resolv_test.c Update copyright dates with scripts/update-copyrights. 7 years ago
resolv_test.h Update copyright dates with scripts/update-copyrights. 7 years ago
run_diff.h Update copyright dates with scripts/update-copyrights. 7 years ago
set_fortify_handler.c Update copyright dates with scripts/update-copyrights. 7 years ago
shell-container.c Update copyright dates with scripts/update-copyrights. 7 years ago
subprocess.h support: Add support_capture_subprogram 7 years ago
support-xfstat.c Update copyright dates with scripts/update-copyrights. 7 years ago
support-xstat.c Update copyright dates with scripts/update-copyrights. 7 years ago
support.h support: Expose sbindir as support_sbindir_prefix 7 years ago
support_become_root.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_can_chroot.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_capture_subprocess.c support: Add support_capture_subprogram 7 years ago
support_capture_subprocess_check.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_chroot.c nss_files: Fix /etc/aliases null pointer dereference [BZ #24059] 7 years ago
support_copy_file_range.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_descriptor_supports_holes.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_descriptors.c support: Include <support/descriptors.h> in support_descriptors.c 7 years ago
support_enter_mount_namespace.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_enter_network_namespace.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_format_address_family.c support: Handle AF_LOCAL, AF_UNSPEC in support_format_address_family 7 years ago
support_format_addrinfo.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_format_dns_packet.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_format_herrno.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_format_hostent.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_format_netent.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_isolate_in_subprocess.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_openpty.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_paths.c support: Expose sbindir as support_sbindir_prefix 7 years ago
support_quote_blob.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_quote_string.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_record_failure.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_run_diff.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_shared_allocate.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_subprocess.c support: Add support_capture_subprogram 7 years ago
support_test_compare_blob.c support: Report NULL blobs explicitly in TEST_COMPARE 7 years ago
support_test_compare_failure.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_test_compare_string.c support: Correct error message for TEST_COMPARE_STRING 7 years ago
support_test_main.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_test_verify_impl.c Update copyright dates with scripts/update-copyrights. 7 years ago
support_write_file_string.c Update copyright dates with scripts/update-copyrights. 7 years ago
temp_file-internal.h Update copyright dates with scripts/update-copyrights. 7 years ago
temp_file.c Update copyright dates with scripts/update-copyrights. 7 years ago
temp_file.h Update copyright dates with scripts/update-copyrights. 7 years ago
test-container.c Avoid fall-through in test-container if execlp fails. 7 years ago
test-driver.c Update copyright dates with scripts/update-copyrights. 7 years ago
test-driver.h support: Invent verbose_printf macro 7 years ago
timespec-add.c support: Add timespec.h 7 years ago
timespec-sub.c support: Add timespec.h 7 years ago
timespec.c support: Add missing EOL terminators on timespec 7 years ago
timespec.h support: Correct confusing comment 7 years ago
true-container.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-support-namespace.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-support_blob_repeat.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-support_capture_subprocess.c support: Add support_capture_subprogram 7 years ago
tst-support_descriptors.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-support_format_dns_packet.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-support_quote_blob.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-support_quote_string.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-support_record_failure-2.sh Update copyright dates with scripts/update-copyrights. 7 years ago
tst-support_record_failure.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-test_compare.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-test_compare_blob.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-test_compare_string.c support: Correct error message for TEST_COMPARE_STRING 7 years ago
tst-xreadlink.c Update copyright dates with scripts/update-copyrights. 7 years ago
tst-xsigstack.c Tests for minimal signal handler functionality in MINSIGSTKSZ space. 7 years ago
tty.h Update copyright dates with scripts/update-copyrights. 7 years ago
write_message.c Update copyright dates with scripts/update-copyrights. 7 years ago
xaccept.c Update copyright dates with scripts/update-copyrights. 7 years ago
xaccept4.c Update copyright dates with scripts/update-copyrights. 7 years ago
xasprintf.c Update copyright dates with scripts/update-copyrights. 7 years ago
xbind.c Update copyright dates with scripts/update-copyrights. 7 years ago
xcalloc.c Update copyright dates with scripts/update-copyrights. 7 years ago
xchroot.c Update copyright dates with scripts/update-copyrights. 7 years ago
xclock_gettime.c support: Add xclock_gettime 7 years ago
xclose.c Update copyright dates with scripts/update-copyrights. 7 years ago
xconnect.c Update copyright dates with scripts/update-copyrights. 7 years ago
xcopy_file_range.c Update copyright dates with scripts/update-copyrights. 7 years ago
xdlfcn.c support: Add xdlvsym function 7 years ago
xdlfcn.h support: Add xdlvsym function 7 years ago
xdlmopen.c support: Implement xdlmopen 7 years ago
xdup2.c Update copyright dates with scripts/update-copyrights. 7 years ago
xfclose.c Update copyright dates with scripts/update-copyrights. 7 years ago
xfopen.c Update copyright dates with scripts/update-copyrights. 7 years ago
xfork.c Update copyright dates with scripts/update-copyrights. 7 years ago
xftruncate.c Update copyright dates with scripts/update-copyrights. 7 years ago
xgetsockname.c Update copyright dates with scripts/update-copyrights. 7 years ago
xlisten.c Update copyright dates with scripts/update-copyrights. 7 years ago
xlseek.c Update copyright dates with scripts/update-copyrights. 7 years ago
xmalloc.c Update copyright dates with scripts/update-copyrights. 7 years ago
xmemstream.c Update copyright dates with scripts/update-copyrights. 7 years ago
xmemstream.h Update copyright dates with scripts/update-copyrights. 7 years ago
xmkdir.c Update copyright dates with scripts/update-copyrights. 7 years ago
xmkdirp.c Update copyright dates with scripts/update-copyrights. 7 years ago
xmmap.c Update copyright dates with scripts/update-copyrights. 7 years ago
xmprotect.c Update copyright dates with scripts/update-copyrights. 7 years ago
xmunmap.c Update copyright dates with scripts/update-copyrights. 7 years ago
xopen.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpipe.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpoll.c Update copyright dates with scripts/update-copyrights. 7 years ago
xposix_memalign.c Fix alignment of TLS variables for tls variant TLS_TCB_AT_TP [BZ #23403] 7 years ago
xposix_spawn.c support: Add support_capture_subprogram 7 years ago
xposix_spawn_file_actions_addclose.c support: Add support_capture_subprogram 7 years ago
xposix_spawn_file_actions_adddup2.c support: Add support_capture_subprogram 7 years ago
xpthread_attr_destroy.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_attr_init.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_attr_setdetachstate.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_attr_setguardsize.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_attr_setstack.c Fix alignment of TLS variables for tls variant TLS_TCB_AT_TP [BZ #23403] 7 years ago
xpthread_attr_setstacksize.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_barrier_destroy.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_barrier_init.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_barrier_wait.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_barrierattr_destroy.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_barrierattr_init.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_barrierattr_setpshared.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_cancel.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_check_return.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_cond_wait.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_create.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_detach.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_join.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutex_consistent.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutex_destroy.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutex_init.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutex_lock.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutex_unlock.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutexattr_destroy.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutexattr_init.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutexattr_setprotocol.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutexattr_setpshared.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutexattr_setrobust.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_mutexattr_settype.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_once.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_rwlock_destroy.c nptl: Fix pthread_rwlock_try*lock stalls (Bug 23844) 7 years ago
xpthread_rwlock_init.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_rwlock_rdlock.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_rwlock_unlock.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_rwlock_wrlock.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_rwlockattr_init.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_rwlockattr_setkind_np.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_sigmask.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_spin_lock.c Update copyright dates with scripts/update-copyrights. 7 years ago
xpthread_spin_unlock.c Update copyright dates with scripts/update-copyrights. 7 years ago
xraise.c Update copyright dates with scripts/update-copyrights. 7 years ago
xreadlink.c Update copyright dates with scripts/update-copyrights. 7 years ago
xrealloc.c Update copyright dates with scripts/update-copyrights. 7 years ago
xrecvfrom.c Update copyright dates with scripts/update-copyrights. 7 years ago
xsendto.c Update copyright dates with scripts/update-copyrights. 7 years ago
xsetsockopt.c Update copyright dates with scripts/update-copyrights. 7 years ago
xsigaction.c Update copyright dates with scripts/update-copyrights. 7 years ago
xsignal.c Update copyright dates with scripts/update-copyrights. 7 years ago
xsignal.h Tests for minimal signal handler functionality in MINSIGSTKSZ space. 7 years ago
xsigstack.c hurd: Fix libsupport xsigstack build 7 years ago
xsocket.c Update copyright dates with scripts/update-copyrights. 7 years ago
xsocket.h Update copyright dates with scripts/update-copyrights. 7 years ago
xspawn.h support: Add support_capture_subprogram 7 years ago
xstdio.h Update copyright dates with scripts/update-copyrights. 7 years ago
xstrdup.c Update copyright dates with scripts/update-copyrights. 7 years ago
xstrndup.c Update copyright dates with scripts/update-copyrights. 7 years ago
xsymlink.c Update copyright dates with scripts/update-copyrights. 7 years ago
xsysconf.c Update copyright dates with scripts/update-copyrights. 7 years ago
xthread.h Fix alignment of TLS variables for tls variant TLS_TCB_AT_TP [BZ #23403] 7 years ago
xtime.h support: Add xclock_now helper function. 7 years ago
xunistd.h Update copyright dates with scripts/update-copyrights. 7 years ago
xunlink.c Update copyright dates with scripts/update-copyrights. 7 years ago
xwaitpid.c Update copyright dates with scripts/update-copyrights. 7 years ago
xwrite.c Update copyright dates with scripts/update-copyrights. 7 years ago

README

This subdirectory contains infrastructure which is not put into
installed libraries, but may be linked into programs (installed or
not) and tests.

# Error-checking wrappers

These wrappers test for error return codes an terminate the process on
error. They are declared in these header files:

* support.h
* xsignal.h
* xthread.h
* xtime.h

In general, new wrappers should be added to support.h if possible.
However, support.h must remain fully compatible with C90 and therefore
cannot include headers which use identifers not reserved in C90. If
the wrappers need additional types, additional headers such as
signal.h need to be introduced.

# Test framework

The test framework provides a main program for tests, including a
timeout for hanging tests. See README-testing.c for a minimal
example, and test-driver.c for details how to use it. The following
header files provide related declarations:

* check.h
* temp_file.h
* test-driver.h

For tests that make use of struct timespec, the following header files
contain additional macros and helper functions:

* timespec.h