This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 0/6] Improve various nptl tests
- From: Mike Crowe <mac at mcrowe dot com>
- To: libc-alpha at sourceware dot org
- Cc: Mike Crowe <mac at mcrowe dot com>
- Date: Thu, 28 Mar 2019 18:31:06 +0000
- Subject: [PATCH 0/6] Improve various nptl tests
In preparation for adding support for the _clockwait family of
functions, modify various tests to:
1. use struct timespec rather than struct timeval
2. use libsupport.
This requires adding a new support/timespec.h containing helper
functions and macros, and the addition of new FAIL_PRINT and
FAIL_THREAD_EXIT1 macros to check.h. I would have preferred to define
FAIL rather than FAIL_PRINT, but this conflicts with many other tests
that define their own FAIL macro.
Thanks to Adhemerval Zanella for providing lots of help and advice
with these patches. They haven't been reviewed yet, so the flaws are
all my own.
Mike Crowe (6):
support: Add xclock_gettime
nptl: Convert tst-cond11.c to use libsupport
nptl: Convert tst-sem5 & tst-sem13 to use libsupport
nptl/tst-rwlock: Use clock_gettime/timespec rather than gettimeofday/timeval
nptl: Convert some rwlock tests to use libsupport
nptl/tst-abstime: Use libsupport
ChangeLog | 47 +++++++++++-
nptl/tst-abstime.c | 57 ++-----------
nptl/tst-cond11.c | 169 ++++++++--------------------------------
nptl/tst-rwlock14.c | 91 ++++------------------
nptl/tst-rwlock6.c | 145 +++++++---------------------------
nptl/tst-rwlock7.c | 115 +++++++--------------------
nptl/tst-rwlock9.c | 96 +++++------------------
nptl/tst-sem5.c | 21 +----
support/Makefile | 1 +-
support/check.h | 14 +++-
support/timespec.h | 115 +++++++++++++++++++++++++++-
support/xclock_gettime.c | 28 +++++++-
support/xtime.h | 33 ++++++++-
13 files changed, 395 insertions(+), 537 deletions(-)
create mode 100644 support/timespec.h
create mode 100644 support/xclock_gettime.c
create mode 100644 support/xtime.h
base-commit: 225d94459b3f713e56d4a5abe79d28e33d3fd114
--
git-series 0.9.1