This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11115] New: Additional setcontext(), etc. POSIX conformance tests
- From: "macro at linux-mips dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Dec 2009 19:42:27 -0000
- Subject: [Bug libc/11115] New: Additional setcontext(), etc. POSIX conformance tests
- Reply-to: sourceware-bugzilla at sourceware dot org
[Pasting http://sourceware.org/ml/libc-alpha/2009-12/msg00053.html]
While developing the implementation of the setcontext(), etc. API for the
MIPS platform earlier this year, I used these additional tests to verify
POSIX conformance (cf.
http://www.opengroup.org/onlinepubs/009695399/functions/setcontext.html).
Their purpose is as follows:
- tst-makecontext3.c -- verify that for ABIs that use a mixed
register/stack argument passing convention arguments are placed in their
designated registers and stack slots correctly -- the existing tests
would not hit the argument register limit for some ABIs, such as MIPS
n64 and n32 ABIs that define eight argument registers,
- tst-sigcontext.c -- verify that a user context obtained from a signal
handler can be used with setcontext(), etc.
I've thought it might be worth sharing these tests with the community so
that developers can readily verify the respective implementations for
platforms they are interested in and do not have to reinvent the wheel.
2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
* stdlib/tst-makecontext3.c: New test.
* stdlib/tst-sigcontext.c: Likewise.
* stdlib/Makefile (tests): Add them.
* stdlib/tst-setcontext.c (check_called): Fix a typo.
--
Summary: Additional setcontext(), etc. POSIX conformance tests
Product: glibc
Version: 2.12
Status: NEW
Severity: enhancement
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: macro at linux-mips dot org
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: *-*-*
GCC host triplet: *-*-*
GCC target triplet: *-*-*
http://sourceware.org/bugzilla/show_bug.cgi?id=11115
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.