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 5707a64d94 support: Helper functions for entering namespaces 9 years ago
..
Makefile support: Helper functions for entering namespaces 9 years ago
README support: Introduce new subdirectory for test infrastructure 9 years ago
README-testing.c support: Introduce new subdirectory for test infrastructure 9 years ago
check.c support: Introduce new subdirectory for test infrastructure 9 years ago
check.h Add SYSV message queue test 9 years ago
delayed_exit.c support: Introduce new subdirectory for test infrastructure 9 years ago
ignore_stderr.c support: Introduce new subdirectory for test infrastructure 9 years ago
namespace.h support: Helper functions for entering namespaces 9 years ago
oom_error.c support: Introduce new subdirectory for test infrastructure 9 years ago
set_fortify_handler.c support: Introduce new subdirectory for test infrastructure 9 years ago
support.h support: Introduce new subdirectory for test infrastructure 9 years ago
support_become_root.c support: Helper functions for entering namespaces 9 years ago
support_enter_network_namespace.c support: Helper functions for entering namespaces 9 years ago
support_record_failure.c support: Add support for delayed test failure reporting 9 years ago
support_test_main.c support: Add support for delayed test failure reporting 9 years ago
support_test_verify_impl.c support: Add support for delayed test failure reporting 9 years ago
temp_file-internal.h support: Introduce new subdirectory for test infrastructure 9 years ago
temp_file.c support: Introduce new subdirectory for test infrastructure 9 years ago
temp_file.h support: Introduce new subdirectory for test infrastructure 9 years ago
test-driver.c support: Introduce new subdirectory for test infrastructure 9 years ago
test-driver.h support: Introduce new subdirectory for test infrastructure 9 years ago
tst-support-namespace.c support: Helper functions for entering namespaces 9 years ago
tst-support_record_failure-2.sh support: Add support for delayed test failure reporting 9 years ago
tst-support_record_failure.c support: Add support for delayed test failure reporting 9 years ago
write_message.c support: Introduce new subdirectory for test infrastructure 9 years ago
xasprintf.c support: Introduce new subdirectory for test infrastructure 9 years ago
xcalloc.c support: Introduce new subdirectory for test infrastructure 9 years ago
xfork.c support: Add support for delayed test failure reporting 9 years ago
xmalloc.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_barrier_destroy.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_barrier_init.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_barrier_wait.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_cancel.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_check_return.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_cond_wait.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_create.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_detach.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_join.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_mutex_lock.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_mutex_unlock.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_sigmask.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_spin_lock.c support: Introduce new subdirectory for test infrastructure 9 years ago
xpthread_spin_unlock.c support: Introduce new subdirectory for test infrastructure 9 years ago
xrealloc.c support: Introduce new subdirectory for test infrastructure 9 years ago
xsignal.h support: Introduce new subdirectory for test infrastructure 9 years ago
xsocket.c support: Helper functions for entering namespaces 9 years ago
xsocket.h support: Helper functions for entering namespaces 9 years ago
xthread.h support: Introduce new subdirectory for test infrastructure 9 years ago
xunistd.h support: Add support for delayed test failure reporting 9 years ago
xwaitpid.c support: Add support for delayed test failure reporting 9 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

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