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-01-17 19:04:56 +02:00
2021-04-19 19:23:10 +01:00
2019-01-15 15:11:43 +00:00
2022-10-31 12:00:53 +01:00
2022-10-13 20:53:56 -04:00
2023-11-03 12:10:49 +00:00
2023-10-25 12:01:02 +01:00
2022-05-18 09:19:02 +01:00
2023-10-11 14:01:28 +01:00
2023-10-11 17:38:30 +01:00
2023-01-06 12:09:37 +00:00
2023-10-11 17:38:30 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-10-10 08:30:46 -07:00
2023-10-10 08:30:46 -07:00
2023-03-23 14:11:36 +00:00
2022-11-07 11:30:32 +00:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-10-10 08:30:46 -07:00
2022-05-18 09:19:02 +01:00
2023-10-11 17:38:30 +01:00
2023-10-11 17:38:30 +01:00
2018-06-02 09:45:55 +02:00
2023-05-16 11:27:45 +01:00
2022-05-18 09:19:02 +01:00
2023-10-04 13:57:16 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-11-02 16:30:23 +00:00
2023-11-02 16:30:23 +00:00
2023-10-03 10:00:44 +00:00
2023-10-03 10:26:10 +02:00
2023-10-11 14:01:28 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-10-10 08:30:46 -07:00
2022-05-23 09:19:45 -04:00
2022-05-18 09:19:02 +01:00
2023-10-23 10:25:31 +01:00
2023-10-11 17:38:31 +01:00
2023-10-22 22:10:07 +01:00
2023-10-23 10:25:31 +01:00
2023-09-11 13:38:26 +02:00
2022-05-18 09:19:02 +01:00
2023-10-17 22:59:27 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-10-11 14:01:29 +01:00
2022-05-18 09:19:02 +01:00
2023-10-22 21:37:28 +01:00
2022-05-18 09:19:02 +01:00
2023-10-11 14:01:29 +01:00
2022-05-18 09:19:02 +01:00
2023-10-11 17:38:30 +01:00
2022-12-16 18:45:36 +01:00
2023-09-11 13:31:39 +02:00
2022-05-18 09:19:02 +01:00
2023-01-09 13:09:26 +01:00
2023-01-09 13:09:26 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-10-23 10:25:30 +01:00
2023-01-09 13:09:26 +01:00
2023-05-18 11:26:33 +02:00
2023-10-12 11:44:48 +02:00
2022-07-25 01:00:54 +02:00
2022-07-25 01:00:54 +02:00
2023-10-23 10:25:31 +01:00
2022-05-18 09:19:02 +01:00
2023-09-04 11:29:57 +00:00
2023-07-21 18:40:13 +01:00
2022-05-18 09:19:02 +01:00
2023-10-23 10:25:30 +01:00
2023-10-03 10:26:10 +02:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-05-30 09:49:43 -05:00
2023-11-01 14:34:37 +00:00
2022-11-22 17:23:12 +01:00
2023-10-09 18:44:38 +01:00
2023-10-09 22:18:18 +01:00
2023-03-23 14:11:36 +00: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-05-30 13:45:05 +01:00
2013-01-13 13:11:57 -05:00
2023-10-11 17:38:30 +01:00
2022-05-18 09:19:02 +01:00
2023-10-27 17:19:08 +02:00
2022-05-18 09:19:02 +01:00
2023-10-11 14:01:29 +01:00
2023-05-10 10:56:44 +07:00
2023-02-21 12:42:55 +00:00
2022-05-18 09:19:02 +01:00
2023-10-11 14:01:29 +01:00
2022-07-25 22:30:22 +01:00
2023-05-30 13:43:25 +01:00
2023-05-30 13:45:05 +01:00
2023-11-01 22:24:45 +00:00
2022-11-22 17:23:13 +01:00
2021-09-21 09:41:29 +00:00
2023-10-11 17:38:30 +01:00
2023-01-09 13:09:26 +01:00
2023-10-11 14:01:29 +01:00
2023-08-21 11:34:27 +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
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2022-10-26 18:07:55 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-01-29 12:40:26 +00:00
2022-05-18 09:19:02 +01:00
2023-10-31 16:53:40 +01:00
2022-05-18 09:19:02 +01:00
2023-10-11 17:38:30 +01:00
2022-05-18 09:19:02 +01:00
2023-09-11 11:33:47 +02:00
2022-05-18 09:19:02 +01:00
2023-10-11 14:01:28 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-10-11 14:01:28 +01:00
2023-04-24 12:48:32 +01:00
2023-10-11 17:38:30 +01:00
2022-05-18 09:19:02 +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
2022-05-18 09:19:02 +01:00
2023-10-17 22:59:27 +01:00
2023-10-11 17:38:30 +01:00
2023-01-09 13:09:26 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-10-11 14:01:29 +01:00
2022-05-18 09:19:02 +01:00
2023-10-11 17:38:30 +01:00
2022-05-18 09:19:02 +01:00
2022-12-12 11:28:58 +04:00
2022-11-03 00:11:45 +08:00
2023-04-14 17:15:28 +01:00
2023-10-09 18:44:38 +01:00
2023-01-09 14:12:16 +01:00
2022-05-18 09:19:02 +01:00
2023-05-31 16:34:16 +01:00
2022-11-02 21:26:34 +00:00
2022-11-07 13:01:47 +00:00
2023-10-03 16:09:03 +02:00
2023-03-15 15:18:34 +08: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
2022-05-18 09:19:02 +01:00
2023-10-15 15:45:58 +02:00
2023-10-15 15:45:58 +02:00
2020-06-12 15:01:08 +01:00
2023-08-16 14:31:40 +01:00
2023-10-11 14:01:29 +01:00
2023-09-22 08:57:40 +02:00
2023-07-21 17:12:01 +01:00
2023-10-04 08:19:57 +00:00
2023-10-11 14:01:28 +01:00
2023-10-04 13:57:16 +01:00
2023-10-23 10:25:31 +01:00
2022-05-18 09:19:02 +01:00
2023-09-01 23:49:25 -07:00
2023-10-11 17:38:31 +01:00
2022-05-18 09:19:02 +01:00
2023-10-23 10:25:31 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2014-02-20 18:27:24 -05:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-10-23 10:25:31 +01:00
2023-01-09 13:23:32 +01:00
2023-05-10 10:56:44 +07:00
2022-05-18 09:19:02 +01:00
2023-10-17 22:59:27 +01:00
2023-10-17 22:59:27 +01:00
2023-10-17 22:45:55 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-10-17 22:59:27 +01:00
2023-10-11 17:38:31 +01:00
2023-10-17 22:59:27 +01:00
2023-09-11 22:50:05 -07:00
2023-05-30 09:49:43 -05:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-05-25 00:36:56 +02:00
2023-10-16 08:25:03 +00:00
2022-11-22 17:23:13 +01:00
2023-08-21 08:53:43 +02:00
2021-05-03 15:09:31 +02:00
2017-02-06 14:40:38 +01:00
2022-05-18 09:19:02 +01:00
2023-07-21 18:40:13 +01:00
2022-12-13 18:15:19 +00:00
2022-05-18 09:19:02 +01:00
2022-11-08 16:14:02 +00:00
2022-12-21 19:50:19 +00:00
2022-12-13 18:15:19 +00:00
2023-05-16 11:27:45 +01:00
2023-02-10 18:22:20 +00:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-07-21 18:40:13 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2022-10-13 20:53:56 -04:00
2023-10-11 17:38:31 +01:00
2022-05-18 09:19:02 +01:00
2022-05-18 09:19:02 +01:00
2023-05-10 10:56:44 +07:00
2022-05-18 09:19:02 +01:00
2016-05-23 10:52:10 -04:00
2023-10-25 11:21:24 +01:00
2023-03-21 14:21:18 +00:00
2020-11-17 15:50:07 +00:00
2023-10-16 15:02:03 +02:00
2023-08-01 15:33:21 -03:00