• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

DependD29-Jul-20224 21

MakefileD29-Jul-20227.9 KiB312266

READMED29-Jul-20221.1 KiB3626

README-testing.cD29-Jul-2022493 209

blob_repeat.cD29-Jul-20229.4 KiB302223

blob_repeat.hD29-Jul-20222.2 KiB5517

capture_subprocess.hD29-Jul-20223 KiB7727

check.cD29-Jul-20221.7 KiB6138

check.hD29-Jul-20229.8 KiB208116

check_addrinfo.cD29-Jul-20221.5 KiB4423

check_dns_packet.cD29-Jul-20221.5 KiB4423

check_hostent.cD29-Jul-20221.5 KiB4423

check_netent.cD29-Jul-20221.5 KiB4423

check_nss.hD29-Jul-20221.7 KiB4315

delayed_exit.cD29-Jul-20221.8 KiB5630

descriptors.hD29-Jul-20221.9 KiB4810

echo-container.cD29-Jul-20221 KiB3514

format_nss.hD29-Jul-20221.6 KiB4213

ignore_stderr.cD29-Jul-20221.2 KiB3918

links-dso-program-c.cD29-Jul-2022791 2713

links-dso-program.ccD29-Jul-2022788 2914

namespace.hD29-Jul-20224.2 KiB11031

next_to_fault.cD29-Jul-20222 KiB5329

next_to_fault.hD29-Jul-20221.6 KiB4915

oom_error.cD29-Jul-20221 KiB309

process_state.hD29-Jul-20221.8 KiB4416

resolv_response_context_duplicate.cD29-Jul-20221.5 KiB3818

resolv_response_context_free.cD29-Jul-20221 KiB299

resolv_test.cD29-Jul-202238.5 KiB1,281990

resolv_test.hD29-Jul-20228.1 KiB22591

run_diff.hD29-Jul-20221.3 KiB325

set_fortify_handler.cD29-Jul-20221.1 KiB3512

shell-container.cD29-Jul-20229.7 KiB439322

subprocess.hD29-Jul-20222 KiB5518

support-open-dev-null-range.cD29-Jul-20223 KiB13597

support-xfstat-time64.cD29-Jul-20221.1 KiB3311

support-xfstat.cD29-Jul-20221,023 299

support-xstat-time64.cD29-Jul-20221.2 KiB3311

support-xstat.cD29-Jul-20221.1 KiB319

support.hD29-Jul-20229.6 KiB23991

support_become_root.cD29-Jul-20223.2 KiB10367

support_can_chroot.cD29-Jul-20221.8 KiB6645

support_capture_subprocess.cD29-Jul-20226.1 KiB238180

support_capture_subprocess_check.cD29-Jul-20223.3 KiB9973

support_chroot.cD29-Jul-20222.7 KiB8452

support_copy_file.cD29-Jul-20221.6 KiB4424

support_copy_file_range.cD29-Jul-20223.9 KiB14497

support_create_timer.cD29-Jul-20221.9 KiB7043

support_descriptor_supports_holes.cD29-Jul-20223.2 KiB9041

support_descriptors.cD29-Jul-20228.4 KiB276216

support_enter_mount_namespace.cD29-Jul-20221.5 KiB4824

support_enter_network_namespace.cD29-Jul-20222.2 KiB7648

support_format_address_family.cD29-Jul-20221.2 KiB4019

support_format_addrinfo.cD29-Jul-20225.9 KiB243199

support_format_dns_packet.cD29-Jul-20226.1 KiB221187

support_format_herrno.cD29-Jul-20221.3 KiB4625

support_format_hostent.cD29-Jul-20222.3 KiB8358

support_format_netent.cD29-Jul-20221.7 KiB5429

support_isolate_in_subprocess.cD29-Jul-20221.2 KiB3916

support_mutex_pi_monotonic.cD29-Jul-20221.2 KiB3717

support_need_proc.cD29-Jul-20221.3 KiB3611

support_openpty.cD29-Jul-20222.8 KiB11074

support_path_support_time64.cD29-Jul-20222.3 KiB7442

support_paths.cD29-Jul-20223 KiB9552

support_process_state.cD29-Jul-20222.8 KiB9459

support_ptrace.cD29-Jul-20221.4 KiB4417

support_quote_blob.cD29-Jul-20221,000 255

support_quote_blob_main.cD29-Jul-20222.4 KiB8960

support_quote_blob_wide.cD29-Jul-20221,002 255

support_quote_string.cD29-Jul-2022995 277

support_record_failure.cD29-Jul-20223.6 KiB11566

support_run_diff.cD29-Jul-20222.3 KiB7750

support_select_modifies_timeout.cD29-Jul-2022976 3010

support_select_normalizes_timeout.cD29-Jul-2022980 3010

support_set_small_thread_stack_size.cD29-Jul-20221.4 KiB4218

support_shared_allocate.cD29-Jul-20221.7 KiB5834

support_small_stack_thread_attribute.cD29-Jul-20221.5 KiB5531

support_socket_so_timestamp_time64.cD29-Jul-20221.5 KiB4928

support_stack_alloc.cD29-Jul-20223.3 KiB8442

support_stat_nanoseconds.cD29-Jul-20221.8 KiB5832

support_subprocess.cD29-Jul-20224.6 KiB166109

support_test_compare_blob.cD29-Jul-20222.8 KiB7954

support_test_compare_failure.cD29-Jul-20222.2 KiB5938

support_test_compare_string.cD29-Jul-20221.1 KiB299

support_test_compare_string_main.cD29-Jul-20222.9 KiB9568

support_test_compare_string_wide.cD29-Jul-20221.1 KiB299

support_test_main.cD29-Jul-202214.9 KiB519386

support_test_verify_impl.cD29-Jul-20221.3 KiB4119

support_wait_for_thread_exit.cD29-Jul-20222.3 KiB7638

support_write_file_string.cD29-Jul-20221.4 KiB4020

temp_file-internal.hD29-Jul-20221.3 KiB327

temp_file.cD29-Jul-20227.1 KiB291216

temp_file.hD29-Jul-20222.4 KiB5913

test-container.cD29-Jul-202233 KiB1,300867

test-driver.cD29-Jul-20225.4 KiB17258

test-driver.hD29-Jul-20223 KiB8641

test-run-command.cD29-Jul-2022999 232

timespec-add-time64.cD29-Jul-20221.1 KiB287

timespec-add.cD29-Jul-20221.8 KiB6638

timespec-sub-time64.cD29-Jul-20221.1 KiB287

timespec-sub.cD29-Jul-20221.8 KiB6637

timespec-time64.cD29-Jul-20221.6 KiB4119

timespec.cD29-Jul-20224.1 KiB11975

timespec.hD29-Jul-20224.4 KiB11675

true-container.cD29-Jul-2022946 275

tst-support-namespace.cD29-Jul-20223.6 KiB11574

tst-support-open-dev-null-range.cD29-Jul-20223.9 KiB157110

tst-support-process_state.cD29-Jul-20222.8 KiB10666

tst-support_blob_repeat.cD29-Jul-20223.6 KiB10574

tst-support_capture_subprocess.cD29-Jul-202210.8 KiB372273

tst-support_descriptors.cD29-Jul-20226.9 KiB199152

tst-support_format_dns_packet.cD29-Jul-20223.3 KiB10268

tst-support_quote_blob.cD29-Jul-20222.1 KiB6230

tst-support_quote_blob_wide.cD29-Jul-20222.3 KiB6735

tst-support_quote_string.cD29-Jul-20222 KiB6131

tst-support_record_failure-2.shD29-Jul-20222.4 KiB7044

tst-support_record_failure.cD29-Jul-20224.2 KiB154119

tst-test_compare.cD29-Jul-20223.4 KiB11777

tst-test_compare_blob.cD29-Jul-20224.2 KiB12685

tst-test_compare_string.cD29-Jul-20223.6 KiB10871

tst-test_compare_string_wide.cD29-Jul-20223.8 KiB10871

tst-timespec.cD29-Jul-202210.8 KiB335260

tst-xreadlink.cD29-Jul-20222.2 KiB7343

tst-xsigstack.cD29-Jul-20221.8 KiB6536

tty.hD29-Jul-20221.8 KiB468

write_message.cD29-Jul-20221.1 KiB3312

xaccept.cD29-Jul-20221.1 KiB3312

xaccept4.cD29-Jul-20221.1 KiB3312

xasprintf.cD29-Jul-20221.1 KiB3716

xbind.cD29-Jul-20221.1 KiB3110

xcalloc.cD29-Jul-20221 KiB3513

xchdir.cD29-Jul-20221,002 299

xchmod.cD29-Jul-20221 KiB3110

xchroot.cD29-Jul-20221,008 299

xclock_gettime.cD29-Jul-20221.1 KiB3212

xclock_gettime_time64.cD29-Jul-20221 KiB277

xclock_settime.cD29-Jul-20221.2 KiB3514

xclock_settime_time64.cD29-Jul-20221 KiB277

xclone.cD29-Jul-20221.6 KiB5027

xclose.cD29-Jul-20221,019 299

xconnect.cD29-Jul-20221.1 KiB3110

xcopy_file_range.cD29-Jul-20221.2 KiB3313

xdlfcn.cD29-Jul-20222 KiB8043

xdlfcn.hD29-Jul-20221.3 KiB3611

xdlmopen.cD29-Jul-20221.1 KiB3210

xdup2.cD29-Jul-2022986 298

xfchmod.cD29-Jul-20221,020 299

xfclose.cD29-Jul-20221.1 KiB3413

xfopen.cD29-Jul-20221.1 KiB3211

xfork.cD29-Jul-20221 KiB3312

xftruncate.cD29-Jul-20221 KiB288

xgetline.cD29-Jul-20221.2 KiB4020

xgetsockname.cD29-Jul-20221 KiB3110

xlisten.cD29-Jul-20221 KiB3110

xlseek.cD29-Jul-20221.1 KiB3010

xlstat-time64.cD29-Jul-20221.2 KiB3311

xlstat.cD29-Jul-20221 KiB299

xmalloc.cD29-Jul-20221 KiB3513

xmemstream.cD29-Jul-20221.3 KiB4321

xmemstream.hD29-Jul-20221.6 KiB5015

xmkdir.cD29-Jul-20221 KiB299

xmkdirp.cD29-Jul-20221.7 KiB6738

xmkfifo.cD29-Jul-20221 KiB3010

xmmap.cD29-Jul-20221.1 KiB3212

xmprotect.cD29-Jul-20221 KiB299

xmunmap.cD29-Jul-20221 KiB299

xnewlocale.cD29-Jul-20221.1 KiB3211

xopen.cD29-Jul-20221.1 KiB3111

xpipe.cD29-Jul-2022956 298

xpoll.cD29-Jul-20221 KiB3312

xposix_memalign.cD29-Jul-20221.1 KiB3615

xposix_spawn.cD29-Jul-20221.2 KiB3313

xposix_spawn_file_actions_addclose.cD29-Jul-20221.1 KiB3010

xposix_spawn_file_actions_adddup2.cD29-Jul-20221.1 KiB3111

xpthread_attr_destroy.cD29-Jul-20221,002 277

xpthread_attr_init.cD29-Jul-2022986 266

xpthread_attr_setaffinity_np.cD29-Jul-20221.1 KiB3111

xpthread_attr_setdetachstate.cD29-Jul-20221 KiB288

xpthread_attr_setguardsize.cD29-Jul-20221 KiB277

xpthread_attr_setstack.cD29-Jul-20221 KiB277

xpthread_attr_setstacksize.cD29-Jul-20221 KiB277

xpthread_barrier_destroy.cD29-Jul-20221 KiB277

xpthread_barrier_init.cD29-Jul-20221.1 KiB288

xpthread_barrier_wait.cD29-Jul-20221.1 KiB299

xpthread_barrierattr_destroy.cD29-Jul-20221 KiB277

xpthread_barrierattr_init.cD29-Jul-20221 KiB277

xpthread_barrierattr_setpshared.cD29-Jul-20221.1 KiB277

xpthread_cancel.cD29-Jul-2022966 266

xpthread_check_return.cD29-Jul-20221.1 KiB3514

xpthread_cond_wait.cD29-Jul-20221,021 277

xpthread_create.cD29-Jul-20221.1 KiB3010

xpthread_detach.cD29-Jul-2022966 266

xpthread_join.cD29-Jul-20221,002 288

xpthread_key_create.cD29-Jul-20221 KiB299

xpthread_key_delete.cD29-Jul-2022943 256

xpthread_kill.cD29-Jul-2022996 277

xpthread_mutex_consistent.cD29-Jul-20221 KiB277

xpthread_mutex_destroy.cD29-Jul-20221 KiB277

xpthread_mutex_init.cD29-Jul-20221 KiB277

xpthread_mutex_lock.cD29-Jul-2022993 266

xpthread_mutex_unlock.cD29-Jul-20221,001 266

xpthread_mutexattr_destroy.cD29-Jul-20221 KiB277

xpthread_mutexattr_init.cD29-Jul-20221,011 266

xpthread_mutexattr_setprotocol.cD29-Jul-20221.1 KiB277

xpthread_mutexattr_setpshared.cD29-Jul-20221.1 KiB277

xpthread_mutexattr_setrobust.cD29-Jul-20221 KiB277

xpthread_mutexattr_settype.cD29-Jul-20221 KiB277

xpthread_once.cD29-Jul-2022995 266

xpthread_rwlock_destroy.cD29-Jul-20221 KiB277

xpthread_rwlock_init.cD29-Jul-20221 KiB288

xpthread_rwlock_rdlock.cD29-Jul-20221,012 277

xpthread_rwlock_unlock.cD29-Jul-20221,012 277

xpthread_rwlock_wrlock.cD29-Jul-20221,012 277

xpthread_rwlockattr_init.cD29-Jul-20221 KiB277

xpthread_rwlockattr_setkind_np.cD29-Jul-20221.1 KiB288

xpthread_sigmask.cD29-Jul-20221.2 KiB3512

xpthread_spin_lock.cD29-Jul-2022990 266

xpthread_spin_unlock.cD29-Jul-2022998 266

xptrace.hD29-Jul-20221.1 KiB337

xraise.cD29-Jul-2022975 288

xreadlink.cD29-Jul-20221.4 KiB4524

xrealloc.cD29-Jul-20221.1 KiB3312

xrecvfrom.cD29-Jul-20221.2 KiB3413

xsched.hD29-Jul-20221.1 KiB3511

xsendto.cD29-Jul-20221.3 KiB3615

xsetlocale.cD29-Jul-20221 KiB3110

xsetsockopt.cD29-Jul-20221.1 KiB3211

xsigaction.cD29-Jul-20221 KiB288

xsignal.cD29-Jul-20221.1 KiB3010

xsignal.hD29-Jul-20222.3 KiB6218

xsigstack.cD29-Jul-20222.5 KiB8252

xsocket.cD29-Jul-20221.1 KiB3312

xsocket.hD29-Jul-20221.6 KiB4018

xspawn.hD29-Jul-20221.2 KiB3510

xstdio.hD29-Jul-20221.3 KiB3810

xstrdup.cD29-Jul-2022998 3110

xstrndup.cD29-Jul-20221,021 3110

xsymlink.cD29-Jul-20221 KiB309

xsysconf.cD29-Jul-20221.2 KiB3714

xthread.hD29-Jul-20225 KiB11767

xtime.hD29-Jul-20221.8 KiB5622

xunistd.hD29-Jul-20223 KiB9150

xunlink.cD29-Jul-2022993 288

xuselocale.cD29-Jul-20221 KiB3110

xwaitpid.cD29-Jul-20221.1 KiB3413

xwrite.cD29-Jul-20221.3 KiB4019

README

1This subdirectory contains infrastructure which is not put into
2installed libraries, but may be linked into programs (installed or
3not) and tests.
4
5# Error-checking wrappers
6
7These wrappers test for error return codes an terminate the process on
8error.  They are declared in these header files:
9
10* support.h
11* xsignal.h
12* xthread.h
13* xtime.h
14
15In general, new wrappers should be added to support.h if possible.
16However, support.h must remain fully compatible with C90 and therefore
17cannot include headers which use identifers not reserved in C90.  If
18the wrappers need additional types, additional headers such as
19signal.h need to be introduced.
20
21# Test framework
22
23The test framework provides a main program for tests, including a
24timeout for hanging tests.  See README-testing.c for a minimal
25example, and test-driver.c for details how to use it.  The following
26header files provide related declarations:
27
28* check.h
29* temp_file.h
30* test-driver.h
31
32For tests that make use of struct timespec, the following header files
33contain additional macros and helper functions:
34
35* timespec.h
36

README-testing.c

1 /* This file contains an example test case which shows minimal use of
2    the test framework.  Additional testing hooks are described in
3    <support/test-driver.c>.  */
4 
5 /* This function will be called from the test driver.  */
6 static int
do_test(void)7 do_test (void)
8 {
9   if (3 == 5)
10     /* Indicate failure.  */
11     return 1;
12   else
13     /* Indicate success.  */
14     return 0;
15 }
16 
17 /* This file references do_test above and contains the definition of
18    the main function.  */
19 #include <support/test-driver.c>
20