Philip Withnall 32e8a73efb tests: Refactor thread-pool-slow to separate test functions
Previously thread-pool-slow ran a single test which encoded a state
machine and polling timer to run 8 different sub-tests and check for
their exit conditions.

This was a bit ugly, and since the timer ran at 1s granularity, several
of the tests completed quite fast and then hang around for most of 1s
before finishing and moving to the next test.

Split the test functions up into separate GTest tests, and split the
state machine up between the test functions. All of the `GMainLoop`
handling is actually only needed for the `test_threadpool_idle_time()`
test.

This reduces the overall test runtime from 36s to 19s on my machine,
with 17s of that being spent in `test_threadpool_idle_time()`.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>

Helps: #2810
2023-11-03 12:10:49 +00:00
..
2023-10-11 17:38:30 +01:00
2023-11-02 16:30:23 +00:00
2023-11-02 16:30:23 +00:00
2022-05-23 09:19:45 -04:00
2023-10-23 10:25:31 +01:00
2023-10-11 17:38:31 +01:00
2023-10-23 10:25:31 +01:00
2023-09-11 13:38:26 +02:00
2023-10-11 17:38:30 +01:00
2023-09-11 13:31:39 +02:00
2023-10-23 10:25:31 +01:00
2023-02-09 13:36:51 +00:00
2018-01-04 22:19:30 +01:00
2023-07-21 18:40:13 +01:00
2023-10-11 17:38:30 +01:00
2023-10-11 14:01:29 +01:00
2022-07-25 22:30:22 +01:00
2021-09-21 09:41:29 +00:00
2023-10-11 17:38:30 +01:00
2023-10-11 14:01:29 +01:00
2021-11-18 14:32:09 +00:00
2023-10-11 17:38:31 +01:00
2023-10-11 17:38:31 +01:00
2023-10-23 10:25:31 +01:00
2023-10-11 17:38:30 +01:00
2023-09-11 11:33:47 +02:00
2023-10-11 17:38:30 +01:00
2023-10-11 17:38:31 +01:00
2023-10-11 17:38:31 +01:00
2023-10-11 17:38:31 +01:00
2023-10-11 17:38:30 +01:00
2023-10-11 17:38:30 +01:00
2023-10-09 18:44:38 +01:00
2023-10-03 16:09:03 +02:00
2023-10-11 17:38:30 +01:00
2023-05-16 11:27:45 +01:00
2023-10-23 10:25:31 +01:00
2023-10-23 10:25:31 +01:00
2023-10-11 17:38:31 +01:00
2023-10-23 10:25:31 +01:00
2023-10-23 10:25:31 +01:00
2023-10-17 22:59:27 +01:00
2023-10-17 22:59:27 +01:00
2023-10-11 17:38:31 +01:00
2023-08-01 15:33:21 -03:00