Philip Withnall
0eadf651fb
tests: Rewrite thread-pool test for freeing queued items
...
The previous test was racy: it assumed that not all queued thread pool
jobs would start to be executed before `g_thread_pool_free()` was
called, whereas actually on some systems (particularly BSD ones), they
would all start (or even finish) being executed, and hence the free
function might never be called.
Rewrite the test to:
• Synchronise the test function and worker thread functions more
closely.
• Not bother about ordering the shared and exclusive variants of the
test differently. That seems to be a hangover from another test
above.
• Limit the number of worker threads to 1, rather than 2, since this
makes the test easier to control.
This has been tested with `--repeat 10000` on Linux, and it succeeds all
of those runs whereas previously it failed quite reliably.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Fixes : #2456
2021-08-19 14:25:24 +01:00
..
2021-05-06 22:54:53 +02:00
2021-04-19 19:23:10 +01:00
2019-01-15 15:11:43 +00:00
2021-01-06 01:06:28 +01:00
2020-02-27 10:33:45 +00:00
2021-08-19 14:25:24 +01:00
2021-08-16 20:05:59 +00:00
2021-03-25 12:55:21 +00:00
2020-06-12 15:01:08 +01:00
2021-06-07 15:52:43 +00:00
2019-10-07 14:38:24 +02:00
2021-08-02 16:00:12 +01:00
2019-07-29 12:27:29 +01:00
2017-05-24 11:58:19 +02:00
2020-11-20 14:41:07 +00:00
2021-05-17 12:07:30 -04:00
2021-01-05 21:42:59 +01:00
2020-05-28 09:21:35 +01:00
2020-01-15 13:15:54 +00:00
2017-05-24 11:58:19 +02:00
2021-06-03 15:15:34 +01:00
2017-05-24 11:58:19 +02:00
2021-06-07 14:03:48 +01:00
2021-08-02 16:00:12 +01:00
2018-06-02 09:45:55 +02:00
2021-06-15 12:01:11 +00:00
2021-06-15 12:01:11 +00:00
2021-03-27 09:28:10 +01:00
2019-05-27 17:51:40 +00:00
2021-03-27 09:28:10 +01:00
2020-12-12 18:30:22 +00:00
2021-08-02 16:00:12 +01:00
2020-09-18 23:50:09 +05:30
2021-03-27 09:28:10 +01:00
2018-08-22 11:18:02 +01:00
2021-03-27 09:28:10 +01:00
2021-08-02 16:00:12 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2021-08-02 14:54:34 +01:00
2020-06-23 10:49:44 +01:00
2021-03-27 09:28:10 +01:00
2021-08-02 16:00:12 +01:00
2021-04-19 19:24:08 +01:00
2017-05-24 11:58:19 +02:00
2021-07-29 10:09:27 -04:00
2020-06-12 15:01:08 +01:00
2017-05-24 11:58:19 +02:00
2021-05-28 17:15:46 +02:00
2021-05-28 17:15:46 +02:00
2021-08-02 16:00:12 +01:00
2021-08-02 16:00:12 +01:00
2020-06-12 15:01:08 +01:00
2017-05-24 11:58:19 +02:00
2021-06-11 15:19:17 +02:00
2019-05-30 10:38:45 +01:00
2019-08-24 19:14:05 +00:00
2017-05-24 11:58:19 +02:00
2017-11-12 16:36:16 +01:00
2017-05-24 11:58:19 +02:00
2021-03-18 16:21:42 +00:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2021-02-08 10:37:01 +00:00
2019-08-24 19:14:05 +00:00
2021-07-26 11:01:07 +01:00
2021-07-26 11:01:07 +01:00
2021-08-02 15:55:08 +01:00
2018-08-22 11:18:02 +01:00
2020-11-17 15:50:07 +00:00
2018-08-25 23:59:45 +01:00
2019-09-05 14:16:58 +01:00
2020-10-14 11:01:24 +00:00
2021-01-06 15:44:59 +00:00
2021-01-06 15:44:59 +00:00
2019-12-11 11:48:41 +00:00
2020-06-10 09:48:02 +01:00
2021-02-01 10:44:35 +00:00
2021-05-17 12:07:30 -04:00
2020-10-02 15:45:44 +01:00
2019-11-26 12:17:04 +00:00
2021-05-17 12:07:30 -04:00
2018-01-04 22:19:30 +01:00
2019-08-24 19:14:05 +00:00
2020-05-19 16:20:31 +01:00
2013-01-13 13:11:57 -05:00
2020-09-22 16:41:55 +01:00
2019-11-25 13:09:25 +01:00
2021-05-17 12:07:30 -04:00
2017-05-24 11:58:19 +02:00
2021-08-02 15:59:43 +01:00
2021-07-24 11:26:40 -04:00
2019-03-15 21:30:22 +01:00
2018-08-22 11:18:02 +01:00
2020-11-20 14:40:19 +00:00
2017-05-24 11:58:19 +02:00
2020-05-19 15:12:16 +01:00
2021-05-17 12:07:30 -04:00
2021-08-02 15:59:43 +01:00
2021-08-02 16:00:12 +01:00
2020-06-12 15:01:08 +01:00
2019-06-25 09:19:49 +02:00
2021-05-13 12:57:06 +02:00
2021-05-13 12:57:06 +02:00
2020-07-27 13:21:20 +01:00
2021-04-27 16:25:09 +02:00
2021-04-27 16:25:09 +02:00
2020-05-20 15:32:47 +02:00
2017-05-24 11:58:19 +02:00
2019-03-15 21:30:22 +01:00
2017-05-24 11:58:19 +02:00
2020-11-12 03:25:58 +00:00
2017-05-24 11:58:19 +02:00
2020-06-10 09:48:02 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2019-09-21 10:48:23 +02:00
2017-05-24 11:58:19 +02:00
2020-09-02 14:38:15 +02:00
2019-05-01 13:01:14 -07:00
2021-07-21 13:49:48 +02:00
2020-06-12 15:01:08 +01:00
2019-07-10 10:10:58 -04:00
2021-05-17 12:07:30 -04:00
2018-12-18 11:18:43 +00:00
2021-05-11 15:08:20 +05:30
2018-11-08 16:04:51 +01:00
2018-07-30 23:06:23 +05:30
2018-12-17 13:53:34 +00:00
2021-06-21 14:07:45 +00:00
2017-10-06 12:49:12 +01:00
2021-05-06 23:07:04 +02:00
2019-05-30 10:38:45 +01:00
2020-03-18 14:50:36 +00:00
2020-11-17 17:25:13 +01:00
2017-05-24 11:58:19 +02:00
2021-08-02 16:00:12 +01:00
2017-05-24 11:58:19 +02:00
2021-08-02 16:00:12 +01:00
2020-07-28 18:22:21 +02:00
2020-09-22 16:41:55 +01:00
2019-11-25 13:09:25 +01:00
2018-06-12 16:13:51 +01:00
2020-06-12 15:01:08 +01:00
2021-06-15 14:33:14 +01:00
2021-08-03 13:53:38 +00:00
2021-06-15 14:33:14 +01:00
2018-10-10 19:19:18 +00:00
2020-07-26 21:38:17 +01:00
2019-09-18 10:47:23 +02:00
2020-01-30 01:56:56 +00:00
2021-08-02 16:00:12 +01:00
2021-02-04 17:34:03 +00:00
2021-08-16 20:58:53 +01:00
2021-02-09 10:50:16 +00:00
2017-10-26 12:27:17 +01:00
2017-05-24 11:58:19 +02:00
2021-05-26 12:41:18 +00:00
2021-05-26 12:41:18 +00:00
2020-06-12 15:01:08 +01:00
2021-05-13 22:16:27 +01:00
2021-08-19 09:49:11 +01:00
2021-08-19 09:49:11 +01:00
2021-07-23 22:21:11 +02:00
2021-07-21 13:49:48 +02:00
2021-08-02 15:59:43 +01:00
2020-05-19 16:17:39 +01:00
2021-08-19 14:25:24 +01:00
2021-07-02 18:42:59 +05:30
2020-01-21 11:56:34 +00:00
2019-07-29 12:27:29 +01:00
2019-07-29 12:27:29 +01:00
2020-11-21 23:11:23 +00:00
2020-11-21 23:11:23 +00:00
2020-11-14 19:04:45 +00:00
2020-11-14 19:04:45 +00:00
2014-02-20 18:27:24 -05:00
2020-05-12 12:41:22 +01:00
2020-07-27 15:41:09 +01:00
2019-05-30 10:39:11 +01:00
2021-03-23 11:36:57 +00:00
2021-03-23 11:36:57 +00:00
2020-11-20 14:40:19 +00:00
2017-05-24 11:58:19 +02:00
2021-07-29 10:09:27 -04:00
2020-03-18 14:50:36 +00:00
2021-08-03 13:53:38 +00:00
2017-05-24 11:58:19 +02:00
2021-06-09 11:11:06 +02:00
2020-03-18 14:50:36 +00:00
2020-03-31 14:18:32 +01:00
2020-03-18 14:50:36 +00:00
2021-02-10 18:25:53 +02:00
2021-05-05 15:13:16 +02:00
2021-03-11 13:37:49 +00:00
2020-06-25 13:57:35 +04:00
2021-03-20 11:14:15 -07:00
2021-06-02 20:10:38 +08:00
2020-11-25 11:34:05 +00:00
2018-12-17 17:16:03 +00:00
2021-05-03 15:09:31 +02:00
2017-02-06 14:40:38 +01:00
2018-05-28 09:22:55 -04:00
2021-05-10 15:28:12 -03:00
2020-08-18 09:46:12 +01:00
2018-10-23 17:01:51 +13:00
2019-10-30 15:37:39 +00:00
2021-05-10 15:28:12 -03:00
2021-05-10 15:28:12 -03:00
2021-05-10 15:28:12 -03:00
2021-08-02 15:56:42 +01:00
2021-02-04 16:04:10 +00:00
2018-10-23 17:01:51 +13:00
2021-05-10 15:28:12 -03:00
2021-05-10 15:28:12 -03:00
2021-08-02 14:52:06 +01:00
2017-05-24 11:58:19 +02:00
2021-03-18 13:58:41 +00:00
2018-04-27 16:46:19 +01:00
2017-05-24 11:58:19 +02:00
2021-06-08 08:38:59 +00:00
2021-06-08 08:38:59 +00:00
2017-07-12 22:36:30 +02:00
2016-05-23 10:52:10 -04:00
2021-06-21 14:07:45 +00:00
2020-11-17 15:50:07 +00:00
2020-04-27 22:00:50 +03:00
2016-08-13 10:31:26 +02:00