|
From: | Bruno Haible |
Subject: | pthread-spin: add tests |
Date: | Wed, 01 Jul 2020 22:10:00 +0200 |
User-agent: | KMail/5.1.3 (Linux/4.4.0-179-generic; KDE/5.18.0; x86_64; ; ) |
This patch series 1) reduces code duplication among the lock and mutex tests. 2) adds a unit test for the 'pthread-spin' module. 2020-07-01 Bruno Haible <bruno@clisp.org> pthread-spin: Add tests. * tests/test-pthread-spin.c: New file, based on tests/test-lock.c. * modules/pthread-spin-tests: New file. 2020-07-01 Bruno Haible <bruno@clisp.org> 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. 2020-07-01 Bruno Haible <bruno@clisp.org> tests: Refactor. * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c. * tests/test-mtx.c: Include it. Remove the corresponding code. * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h. 2020-07-01 Bruno Haible <bruno@clisp.org> tests: Refactor. * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c. * tests/test-lock.c: Include it. Remove the corresponding code. * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
0001-tests-Refactor.patch
Description: Text Data
0002-tests-Refactor.patch
Description: Text Data
0003-tests-Reduce-code-duplication.patch
Description: Text Data
0004-pthread-spin-Add-tests.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |