]> Savannah Git Hosting - gnulib.git/commit
tests: Reduce code duplication.
authorBruno Haible <bruno@clisp.org>
Wed, 1 Jul 2020 20:06:27 +0000 (22:06 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 1 Jul 2020 20:06:27 +0000 (22:06 +0200)
commit6b9216ed0b43b2777d8d12f865e32edb5b30d945
tree977e7556f857e6e316e2c5bd0c1a9c1f0fc5312b
parentb151d099fbfedb43161daf3112ec432456f52941
tests: Reduce code duplication.

* tests/atomic-int-posix.h: New file, extracted from
tests/test-pthread-mutex.c.
* tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
* tests/test-pthread-rwlock.c: Likewise.
* modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
* modules/pthread-rwlock-tests (Files): Likewise.
ChangeLog
modules/pthread-mutex-tests
modules/pthread-rwlock-tests
tests/atomic-int-posix.h [new file with mode: 0644]
tests/test-pthread-mutex.c
tests/test-pthread-rwlock.c