pulseaudio-17.0-backport-pr807.patch 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. https://bugs.gentoo.org/918447
  2. https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/807
  3. From 26ccd1167a6188fb28745f3f5c9940657f64343c Mon Sep 17 00:00:00 2001
  4. From: matoro <75928-matoro1@users.noreply.gitlab.freedesktop.org>
  5. Date: Wed, 24 Jan 2024 12:08:28 -0500
  6. Subject: [PATCH] tests: remove check2 timeouts in favor of meson
  7. Meson already handles timeouts, configurable on the command line with
  8. --timeout-multiplier. They are set to 300s for all tests.
  9. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/807>
  10. ---
  11. src/tests/alsa-mixer-path-test.c | 1 -
  12. src/tests/connect-stress.c | 1 -
  13. src/tests/cpu-mix-test.c | 1 -
  14. src/tests/cpu-remap-test.c | 2 --
  15. src/tests/cpu-sconv-test.c | 1 -
  16. src/tests/cpu-volume-test.c | 1 -
  17. src/tests/extended-test.c | 1 -
  18. src/tests/interpol-test.c | 1 -
  19. src/tests/lfe-filter-test.c | 1 -
  20. src/tests/lo-latency-test.c | 1 -
  21. src/tests/lock-autospawn-test.c | 4 ----
  22. src/tests/meson.build | 1 +
  23. src/tests/mult-s16-test.c | 1 -
  24. src/tests/once-test.c | 4 ----
  25. src/tests/passthrough-test.c | 1 -
  26. src/tests/rtpoll-test.c | 4 ----
  27. src/tests/sync-playback.c | 1 -
  28. src/tests/thread-mainloop-test.c | 4 ----
  29. src/tests/thread-test.c | 1 -
  30. src/tests/volume-test.c | 1 -
  31. 20 files changed, 1 insertion(+), 32 deletions(-)
  32. diff --git a/src/tests/alsa-mixer-path-test.c b/src/tests/alsa-mixer-path-test.c
  33. index 63b4a4cacb..208d75d475 100644
  34. --- a/src/tests/alsa-mixer-path-test.c
  35. +++ b/src/tests/alsa-mixer-path-test.c
  36. @@ -107,7 +107,6 @@ int main(int argc, char *argv[]) {
  37. s = suite_create("Alsa-mixer-path");
  38. tc = tcase_create("alsa-mixer-path");
  39. tcase_add_test(tc, mixer_path_test);
  40. - tcase_set_timeout(tc, 30);
  41. suite_add_tcase(s, tc);
  42. sr = srunner_create(s);
  43. diff --git a/src/tests/connect-stress.c b/src/tests/connect-stress.c
  44. index a243df9ea1..35f8ea9c4a 100644
  45. --- a/src/tests/connect-stress.c
  46. +++ b/src/tests/connect-stress.c
  47. @@ -223,7 +223,6 @@ int main(int argc, char *argv[]) {
  48. s = suite_create("Connect Stress");
  49. tc = tcase_create("connectstress");
  50. tcase_add_test(tc, connect_stress_test);
  51. - tcase_set_timeout(tc, 20 * 60);
  52. suite_add_tcase(s, tc);
  53. sr = srunner_create(s);
  54. diff --git a/src/tests/cpu-mix-test.c b/src/tests/cpu-mix-test.c
  55. index 6b5b8e37a6..2190ea4bdf 100644
  56. --- a/src/tests/cpu-mix-test.c
  57. +++ b/src/tests/cpu-mix-test.c
  58. @@ -212,7 +212,6 @@ int main(int argc, char *argv[]) {
  59. #if defined (__arm__) && defined (__linux__) && defined (HAVE_NEON)
  60. tcase_add_test(tc, mix_neon_test);
  61. #endif
  62. - tcase_set_timeout(tc, 120);
  63. suite_add_tcase(s, tc);
  64. sr = srunner_create(s);
  65. diff --git a/src/tests/cpu-remap-test.c b/src/tests/cpu-remap-test.c
  66. index 2554688927..21fc5dc9dc 100644
  67. --- a/src/tests/cpu-remap-test.c
  68. +++ b/src/tests/cpu-remap-test.c
  69. @@ -524,7 +524,6 @@ int main(int argc, char *argv[]) {
  70. #if defined (__arm__) && defined (__linux__) && defined (HAVE_NEON)
  71. tcase_add_test(tc, remap_neon_test);
  72. #endif
  73. - tcase_set_timeout(tc, 120);
  74. suite_add_tcase(s, tc);
  75. tc = tcase_create("rearrange");
  76. @@ -532,7 +531,6 @@ int main(int argc, char *argv[]) {
  77. #if defined (__arm__) && defined (__linux__) && defined (HAVE_NEON)
  78. tcase_add_test(tc, rearrange_neon_test);
  79. #endif
  80. - tcase_set_timeout(tc, 120);
  81. suite_add_tcase(s, tc);
  82. sr = srunner_create(s);
  83. diff --git a/src/tests/cpu-sconv-test.c b/src/tests/cpu-sconv-test.c
  84. index 6a84722fd8..5ae939d45b 100644
  85. --- a/src/tests/cpu-sconv-test.c
  86. +++ b/src/tests/cpu-sconv-test.c
  87. @@ -251,7 +251,6 @@ int main(int argc, char *argv[]) {
  88. #if defined (__arm__) && defined (__linux__) && defined (HAVE_NEON)
  89. tcase_add_test(tc, sconv_neon_test);
  90. #endif
  91. - tcase_set_timeout(tc, 120);
  92. suite_add_tcase(s, tc);
  93. sr = srunner_create(s);
  94. diff --git a/src/tests/cpu-volume-test.c b/src/tests/cpu-volume-test.c
  95. index 5de8c83045..c7d73be04b 100644
  96. --- a/src/tests/cpu-volume-test.c
  97. +++ b/src/tests/cpu-volume-test.c
  98. @@ -235,7 +235,6 @@ int main(int argc, char *argv[]) {
  99. tcase_add_test(tc, svolume_arm_test);
  100. #endif
  101. tcase_add_test(tc, svolume_orc_test);
  102. - tcase_set_timeout(tc, 120);
  103. suite_add_tcase(s, tc);
  104. sr = srunner_create(s);
  105. diff --git a/src/tests/extended-test.c b/src/tests/extended-test.c
  106. index e855c7746a..33c08eef4c 100644
  107. --- a/src/tests/extended-test.c
  108. +++ b/src/tests/extended-test.c
  109. @@ -211,7 +211,6 @@ int main(int argc, char *argv[]) {
  110. tc = tcase_create("extended");
  111. tcase_add_test(tc, extended_test);
  112. /* 4s of audio, 0.5s grace time */
  113. - tcase_set_timeout(tc, 4.5);
  114. suite_add_tcase(s, tc);
  115. sr = srunner_create(s);
  116. diff --git a/src/tests/interpol-test.c b/src/tests/interpol-test.c
  117. index bb69e52537..e0e467bf53 100644
  118. --- a/src/tests/interpol-test.c
  119. +++ b/src/tests/interpol-test.c
  120. @@ -282,7 +282,6 @@ int main(int argc, char *argv[]) {
  121. s = suite_create("Interpol");
  122. tc = tcase_create("interpol");
  123. tcase_add_test(tc, interpol_test);
  124. - tcase_set_timeout(tc, 5 * 60);
  125. suite_add_tcase(s, tc);
  126. sr = srunner_create(s);
  127. diff --git a/src/tests/lfe-filter-test.c b/src/tests/lfe-filter-test.c
  128. index d779e05a4f..c5fdeb304f 100644
  129. --- a/src/tests/lfe-filter-test.c
  130. +++ b/src/tests/lfe-filter-test.c
  131. @@ -184,7 +184,6 @@ int main(int argc, char *argv[]) {
  132. s = suite_create("lfe-filter");
  133. tc = tcase_create("lfe-filter");
  134. tcase_add_test(tc, lfe_filter_test);
  135. - tcase_set_timeout(tc, 10);
  136. suite_add_tcase(s, tc);
  137. sr = srunner_create(s);
  138. diff --git a/src/tests/lo-latency-test.c b/src/tests/lo-latency-test.c
  139. index 813b337697..3f985a5c63 100644
  140. --- a/src/tests/lo-latency-test.c
  141. +++ b/src/tests/lo-latency-test.c
  142. @@ -175,7 +175,6 @@ int main(int argc, char *argv[]) {
  143. s = suite_create("Loopback latency");
  144. tc = tcase_create("loopback latency");
  145. tcase_add_test(tc, loopback_test);
  146. - tcase_set_timeout(tc, 5 * 60);
  147. suite_add_tcase(s, tc);
  148. sr = srunner_create(s);
  149. diff --git a/src/tests/lock-autospawn-test.c b/src/tests/lock-autospawn-test.c
  150. index d475d2dcd6..13a3e40d01 100644
  151. --- a/src/tests/lock-autospawn-test.c
  152. +++ b/src/tests/lock-autospawn-test.c
  153. @@ -114,10 +114,6 @@ int main(int argc, char *argv[]) {
  154. s = suite_create("Lock Auto Spawn");
  155. tc = tcase_create("lockautospawn");
  156. tcase_add_test(tc, lockautospawn_test);
  157. - /* the default timeout is too small,
  158. - * set it to a reasonable large one.
  159. - */
  160. - tcase_set_timeout(tc, 60 * 60);
  161. suite_add_tcase(s, tc);
  162. sr = srunner_create(s);
  163. diff --git a/src/tests/meson.build b/src/tests/meson.build
  164. index dceca55c7e..bbdd231300 100644
  165. --- a/src/tests/meson.build
  166. +++ b/src/tests/meson.build
  167. @@ -208,6 +208,7 @@ endif
  168. test_env = environment()
  169. test_env.set('MAKE_CHECK', '1')
  170. +test_env.set('CK_DEFAULT_TIMEOUT', '0')
  171. foreach t : default_tests + norun_tests
  172. name = t[0]
  173. diff --git a/src/tests/mult-s16-test.c b/src/tests/mult-s16-test.c
  174. index 91740c2fe9..b222c18114 100644
  175. --- a/src/tests/mult-s16-test.c
  176. +++ b/src/tests/mult-s16-test.c
  177. @@ -102,7 +102,6 @@ int main(int argc, char *argv[]) {
  178. s = suite_create("Mult-s16");
  179. tc = tcase_create("mult-s16");
  180. tcase_add_test(tc, mult_s16_test);
  181. - tcase_set_timeout(tc, 120);
  182. suite_add_tcase(s, tc);
  183. sr = srunner_create(s);
  184. diff --git a/src/tests/once-test.c b/src/tests/once-test.c
  185. index c4d4b4be6c..f14d2edc6b 100644
  186. --- a/src/tests/once-test.c
  187. +++ b/src/tests/once-test.c
  188. @@ -132,10 +132,6 @@ int main(int argc, char *argv[]) {
  189. s = suite_create("Once");
  190. tc = tcase_create("once");
  191. tcase_add_test(tc, once_test);
  192. - /* the default timeout is too small,
  193. - * set it to a reasonable large one.
  194. - */
  195. - tcase_set_timeout(tc, 60 * 60);
  196. suite_add_tcase(s, tc);
  197. sr = srunner_create(s);
  198. diff --git a/src/tests/passthrough-test.c b/src/tests/passthrough-test.c
  199. index 4a1ef783e9..cbeedd03ab 100644
  200. --- a/src/tests/passthrough-test.c
  201. +++ b/src/tests/passthrough-test.c
  202. @@ -335,7 +335,6 @@ int main(int argc, char *argv[]) {
  203. tcase_add_test(tc, passthrough_playback_test);
  204. sink_num++;
  205. tcase_add_test(tc, passthrough_volume_test);
  206. - tcase_set_timeout(tc, 5);
  207. suite_add_tcase(s, tc);
  208. sr = srunner_create(s);
  209. diff --git a/src/tests/rtpoll-test.c b/src/tests/rtpoll-test.c
  210. index aab637be1d..48dcdd1205 100644
  211. --- a/src/tests/rtpoll-test.c
  212. +++ b/src/tests/rtpoll-test.c
  213. @@ -91,10 +91,6 @@ int main(int argc, char *argv[]) {
  214. s = suite_create("RT Poll");
  215. tc = tcase_create("rtpoll");
  216. tcase_add_test(tc, rtpoll_test);
  217. - /* the default timeout is too small,
  218. - * set it to a reasonable large one.
  219. - */
  220. - tcase_set_timeout(tc, 60 * 60);
  221. suite_add_tcase(s, tc);
  222. sr = srunner_create(s);
  223. diff --git a/src/tests/sync-playback.c b/src/tests/sync-playback.c
  224. index 18afa180b2..3c356a7508 100644
  225. --- a/src/tests/sync-playback.c
  226. +++ b/src/tests/sync-playback.c
  227. @@ -208,7 +208,6 @@ int main(int argc, char *argv[]) {
  228. tc = tcase_create("syncplayback");
  229. tcase_add_test(tc, sync_playback_test);
  230. /* 4s of audio, 0.5s grace time */
  231. - tcase_set_timeout(tc, 4.5);
  232. suite_add_tcase(s, tc);
  233. sr = srunner_create(s);
  234. diff --git a/src/tests/thread-mainloop-test.c b/src/tests/thread-mainloop-test.c
  235. index 5f6952cdec..8ee14da57d 100644
  236. --- a/src/tests/thread-mainloop-test.c
  237. +++ b/src/tests/thread-mainloop-test.c
  238. @@ -102,10 +102,6 @@ int main(int argc, char *argv[]) {
  239. s = suite_create("Thread MainLoop");
  240. tc = tcase_create("threadmainloop");
  241. tcase_add_test(tc, thread_mainloop_test);
  242. - /* the default timeout is too small,
  243. - * set it to a reasonable large one.
  244. - */
  245. - tcase_set_timeout(tc, 60 * 60);
  246. suite_add_tcase(s, tc);
  247. sr = srunner_create(s);
  248. diff --git a/src/tests/thread-test.c b/src/tests/thread-test.c
  249. index 4fcbfd4d3c..0c83e67e07 100644
  250. --- a/src/tests/thread-test.c
  251. +++ b/src/tests/thread-test.c
  252. @@ -153,7 +153,6 @@ int main(int argc, char *argv[]) {
  253. s = suite_create("Thread");
  254. tc = tcase_create("thread");
  255. tcase_add_test(tc, thread_test);
  256. - tcase_set_timeout(tc, 60 * 60);
  257. suite_add_tcase(s, tc);
  258. sr = srunner_create(s);
  259. diff --git a/src/tests/volume-test.c b/src/tests/volume-test.c
  260. index 55486f6427..dc5b90d0d7 100644
  261. --- a/src/tests/volume-test.c
  262. +++ b/src/tests/volume-test.c
  263. @@ -161,7 +161,6 @@ int main(int argc, char *argv[]) {
  264. s = suite_create("Volume");
  265. tc = tcase_create("volume");
  266. tcase_add_test(tc, volume_test);
  267. - tcase_set_timeout(tc, 120);
  268. suite_add_tcase(s, tc);
  269. sr = srunner_create(s);
  270. --
  271. GitLab