summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2018-08-01 10:38:05 +0200
committerThomas Beierlein <tomjbe@gentoo.org>2018-08-01 10:38:05 +0200
commit6bd56369bade77916f1984fc35bff33b4bc90413 (patch)
treed32d96e35e103c55778f29ce67c855e63da47bce /media-radio/unixcw/files
parentnet-fs/samba: Bump to version 4.9.0_rc2. Removed old. (diff)
downloadgentoo-6bd56369bade77916f1984fc35bff33b4bc90413.tar.gz
gentoo-6bd56369bade77916f1984fc35bff33b4bc90413.tar.bz2
gentoo-6bd56369bade77916f1984fc35bff33b4bc90413.zip
media-radio/unixcw: Fix tests
Make test independent of installed audio system. Reported-by: Toralf Förster <toralf@gentoo.org> Closes: https://bugs.gentoo.org/630276 Package-Manager: Portage-2.3.44, Repoman-2.3.10
Diffstat (limited to 'media-radio/unixcw/files')
-rw-r--r--media-radio/unixcw/files/unixcw-tests.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/media-radio/unixcw/files/unixcw-tests.patch b/media-radio/unixcw/files/unixcw-tests.patch
new file mode 100644
index 000000000000..9d2c3d9685c2
--- /dev/null
+++ b/media-radio/unixcw/files/unixcw-tests.patch
@@ -0,0 +1,12 @@
+# works now without any installed audio system
+--- src/libcw/tests/libcw_test_tq_short_space.c.orig 2018-08-01 07:53:33.972577616 +0000
++++ src/libcw/tests/libcw_test_tq_short_space.c 2018-08-01 07:53:42.877456677 +0000
+@@ -94,7 +94,7 @@
+ bool success = true;
+
+ /* Library initialization. */
+- cw_generator_new(CW_AUDIO_SOUNDCARD, NULL);
++ cw_generator_new(CW_AUDIO_NULL, NULL);
+ cw_generator_start();
+
+ cw_register_tone_queue_low_callback(cwdaemon_tone_queue_low_callback, NULL, tq_low_watermark);