summaryrefslogtreecommitdiff
path: root/libc/test/src/pthread
AgeCommit message (Collapse)Author
2024-10-05[libc] remove errno.h includes (#110934)Job Henandez Lara
2024-05-30Reland: [libc][POSIX][pthreads] implemented missing pthread_rwlockattr ↵Hendrik Hübner
functions (#93622) New pull request for https://github.com/llvm/llvm-project/issues/89443 The previous PR was reverted after breaking fullbuild due to a missing struct declaration, which I forgot to commit. Reverts revert and adds the missing pthread_rwlockattr_getkind_np / pthread_rwlockattr_setkind_np functions and tests respecitvely.
2024-05-13Revert "[libc][POSIX][pthreads] implemented missing pthread_rwlockattr ↵Schrodinger ZHU Yifan
functions" (#91966) Reverts llvm/llvm-project#90249 Fullbuild is broken: https://lab.llvm.org/buildbot/#/builders/163/builds/56501
2024-05-13[libc][POSIX][pthreads] implemented missing pthread_rwlockattr functions ↵Hendrik Hübner
(#90249) Closes #89443 I added the two missing functions and respective test cases. Let me know if anything needs changing.
2024-04-22[libc][POSIX][pthreads] implement pthread_rwlockattr_t functions (#89322)Nick Desaulniers
Implement: - pthread_rwlockattr_destroy - pthread_rwlockattr_getpshared - pthread_rwlockattr_init - pthread_rwlockattr_setpshared
2024-04-19[libc] fixup nascent pthread_condattr_test (#89308)Nick Desaulniers
- use namespaced identifiers - add corresponding headers for namespaced declarations - replace time.h and errno.h with finer grain includes - update cmake Fixes: #88987 Fixes: #89261 Link: #88997 Link: #89262
2024-04-17[libc] set cmake dependencies for condattr test (#89103)Nick Desaulniers
The entrypoints are not yet exposed on non-x86. Express this dependency to unbreak post submit. Fixes #88987
2024-04-17[libc][POSIX][pthreads] implement pthread_condattr_t functions (#88987)Nick Desaulniers
Implement: - pthread_condattr_destroy - pthread_condattr_getclock - pthread_condattr_getpshared - pthread_condattr_init - pthread_condattr_setclock - pthread_condattr_setpshared Fixes: #88581
2023-09-26[libc] Mass replace enclosing namespace (#67032)Guillaume Chatelet
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
2023-04-24[libc] Run all unit tests, irrespective of whether they belong to a test suite.Siva Chandra Reddy
Previously, only those unit tests which belonged to a suite were run as part of libc-unit-tests. It meant that unit tests not part of any suite were not being tested. This change makes all unit tests run as part of libc-unit-tests. The convenience function to add a libc unit test suite has been removed and add_custom_target is used in its place. One of the bit-rotting test has along been fixed. Math exhaustive and differential tests are skipped under full build. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D148784
2023-02-07[libc][NFC] Move UnitTest and IntegrationTest to the 'test' directory.Siva Chandra Reddy
This part of the effort to make all test related pieces into the `test` directory. This helps is excluding test related pieces in a straight forward manner if LLVM_INCLUDE_TESTS is OFF. Future patches will also move the MPFR wrapper and testutils into the 'test' directory.
2022-06-23[libc][NFC] Convert pthread tests which create threads to integration tests.Siva Chandra Reddy
2022-06-02[libc] Add pthread_create and pthread_join functions.Siva Chandra Reddy
They do not yet support all the feature/attributes in pthread_attr_t. Future changes will add such support. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D126718
2022-05-24[libc] Add the pthread_mutex_t type.Siva Chandra Reddy
Simple implementations of the functions pthread_mutex_init, pthread_mutex_destroy, pthread_mutex_lock and pthread_mutex_unlock have have also been added. Future patches will extend these functions to add features required by the POSIX specification. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D126235
2022-04-11[libc] Add a definition of pthread_attr_t and its getters and setters.Siva Chandra Reddy
Not all attributes have been added to phtread_attr_t in this patch. They will be added gradually in future patches. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D123423
2022-04-04[libc] Add pthread_mutexattr_t type and its setters and getters.Siva Chandra Reddy
A simple implementation of the getters and setters has been added. More logic can be added to them in future as required. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D122969