about summary refs log tree commit diff
path: root/support
Commit message (Collapse)AuthorAgeFilesLines
...
* support_format_dns_packet: Fix CNAME and multiple RR handlingFlorian Weimer2017-03-153-7/+114
| | | | | | | | | | Before this change, the loop iterating over RRs in the answer section stopped at the first CNAME record, never printing them. The CNAME and PTR record contents was extracted from the wrong buffer (whole packet instead RDATA). This desynced the parsing after the first CNAME or PTR record. Also fix the AAAA record parsing by checking their sizes.
* Bug 20116: Fix use after free in pthread_create()Carlos O'Donell2017-01-286-0/+114
| | | | | | | | | | | | | | | | | | The commit documents the ownership rules around 'struct pthread' and when a thread can read or write to the descriptor. With those ownership rules in place it becomes obvious that pd->stopped_start should not be touched in several of the paths during thread startup, particularly so for detached threads. In the case of detached threads, between the time the thread is created by the OS kernel and the creating thread checks pd->stopped_start, the detached thread might have already exited and the memory for pd unmapped. As a regression test we add a simple test which exercises this exact case by quickly creating detached threads with large enough stacks to ensure the thread stack cache is bypassed and the stacks are unmapped. Before the fix the testcase segfaults, after the fix it works correctly and completes without issue. For a detailed discussion see: https://www.sourceware.org/ml/libc-alpha/2017-01/msg00505.html
* nptl: Add tst-robust-forkFlorian Weimer2017-01-2714-0/+317
|
* support: struct netent portability fix for support_format_netentFlorian Weimer2017-01-011-1/+3
|
* support: Use %td for pointer difference in xwriteFlorian Weimer2017-01-011-2/+2
|
* Update copyright dates with scripts/update-copyrights.Joseph Myers2017-01-0181-81/+81
|
* resolv: Add beginnings of a libresolv test suiteFlorian Weimer2016-12-3138-0/+2906
|
* support: Implement --verbose option for test programsFlorian Weimer2016-12-315-8/+22
| | | | | | Some tests can produce rather verbose tracing information, and the --verbose option provides a standardized way to enable such logging output.
* support: Use support_record_failure consistentlyFlorian Weimer2016-12-3111-32/+28
| | | | | | | | This causes more test programs to link in the support_record_failure function, which triggers an early call to mmap from an ELF constructor, but this should not have side effects intefering with the functionality actually under test (unlike, say, a call to malloc).
* support: Helper functions for entering namespacesFlorian Weimer2016-12-317-0/+268
|
* Fix tst-support_record_failure-2 for run-built-tests = no.Joseph Myers2016-12-301-0/+2
| | | | | | | | | | | | | | | The support/tst-support_record_failure-2.out test attempts to run built code even if run-built-tests = no, so failing with build-many-glibcs.py for all architectures whose code cannot be run on the system running the script. This patch disables the test in that case. Tested for x86_64 (native), and for aarch64 with build-many-glibcs.py. * support/Makefile (tests-special): Make definition conditional on [$(run-built-tests) = yes]. ($(objpfx)tst-support_record_failure-2.out): Make rule conditional on [$(run-built-tests) = yes].
* Add SYSV message queue testAdhemerval Zanella2016-12-281-0/+5
| | | | | | | | | | This patch adds a simple SYSV message queue test to check for correct argument passing on kernel. The idea is neither to be an extensive testing nor to check for any specific Linux test. * sysvipc/Makefile (tests): Add test-sysvmsg. * sysvipc/test-sysvmsg.c: New file. * test-skeleton.c (FAIL_UNSUPPORTED): New define.
* support: Add support for delayed test failure reportingFlorian Weimer2016-12-2810-7/+530
| | | | | | The new functions support_record_failure records a test failure, but does not terminate the process. The macros TEST_VERIFY and TEST_VERIFY_EXIT check that a condition is true.
* Fix assertion failure on test timeoutAndreas Schwab2016-12-151-1/+1
|
* Fix testsuite timeout handlingAndreas Schwab2016-12-101-1/+1
|
* support: Introduce new subdirectory for test infrastructureFlorian Weimer2016-12-0937-0/+1898
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.