summaryrefslogtreecommitdiff
path: root/Tests/LibThreading
AgeCommit message (Collapse)Author
2023-05-24LibThreading: Improve resiliancy of timed threading testsTimothy Flynn
The threading tests currently wait for a very small amount of time for the expected test condition to be reached, e.g. 20ms. This changes the tests to *check* the condition every 20ms, but allow the test to run for up to 2s until the condition is reached. This should hopefully resolve the failures seen on CI. This also renames one of the tests to match what it actually does. The test itself was changed in commit 5b335e7, but the name was not updated to reflect that change.
2023-05-14Tests: Prefer TRY_OR_FAIL() and MUST() over EXPECT(!.is_error())Ben Wiederhake
Note that in some cases (in particular SQL::Result and PDFErrorOr), there is no Formatter defined for the error type, hence TRY_OR_FAIL cannot work as-is. Furthermore, this commit leaves untouched the places where MUST could be replaced by TRY_OR_FAIL. Inspired by: https://github.com/SerenityOS/serenity/pull/18710#discussion_r1186892445
2022-12-11Tests: Update thread tests and make them passkleines Filmröllchen
The existing tests have only mildly changed, and there is another test for joining dead non-detached threads.
2022-07-19LibC: Remove the `LibPthread` interface targetTim Schumacher
2021-10-06Tests: Disable LibThreading detach tests for nowAndreas Kling
These tests don't pass (at least not without KVM) at the moment, so let's not run them on CI.
2021-09-02Tests: Remove all file(GLOB) from CMakeLists in TestsAndrew Kaster
Using a file(GLOB) to find all the test files in a directory is an easy hack to get things started, but has some drawbacks. Namely, if you add a test, it won't be found again without re-running CMake. `ninja` seems to do this automatically, but it would be nice to one day stop seeing it rechecking our globbed directories.
2021-07-02Tests+LibThreading: Add new tests for LibThreading for detach()Spencer Dixon