1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

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.
This commit is contained in:
Bruno Haible
2020-07-01 22:06:27 +02:00
parent b151d099fb
commit 6b9216ed0b
6 changed files with 192 additions and 320 deletions

View File

@@ -1,5 +1,6 @@
Files:
tests/test-pthread-mutex.c
tests/atomic-int-posix.h
tests/macros.h
Depends-on: