summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2019-06-22 19:10:15 +0200
committerTupone Alfredo <tupone@gentoo.org>2019-06-22 19:10:15 +0200
commit922269677f62ec575ba740404c46e29edf7c6694 (patch)
treef855ceb6772b31909da5279f57747cf8484fbfdd /dev-tcltk/snack
parentsys-apps/xdg-desktop-portal: Actually set app-misc/geoclue-2.5.3 (diff)
downloadgentoo-922269677f62ec575ba740404c46e29edf7c6694.tar.gz
gentoo-922269677f62ec575ba740404c46e29edf7c6694.tar.bz2
gentoo-922269677f62ec575ba740404c46e29edf7c6694.zip
dev-tcltk/snack: Fix test with oss
Closes: https://bugs.gentoo.org/687308 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11
Diffstat (limited to 'dev-tcltk/snack')
-rw-r--r--dev-tcltk/snack/files/snack-2.2.10-test.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-tcltk/snack/files/snack-2.2.10-test.patch b/dev-tcltk/snack/files/snack-2.2.10-test.patch
index 8d2dcc61fe15..0c5ed836a599 100644
--- a/dev-tcltk/snack/files/snack-2.2.10-test.patch
+++ b/dev-tcltk/snack/files/snack-2.2.10-test.patch
@@ -35,3 +35,44 @@
test mixer-1.3 {snack::mixer select command} {
catch {snack::mixer select junk} msg
set msg
+--- a/tests/audio.test 2019-06-22 19:02:01.803975186 +0200
++++ b/tests/audio.test 2019-06-22 19:04:12.368034556 +0200
+@@ -13,38 +13,16 @@
+ set msg
+ } {bad option "junk": must be outputDevices, inputDevices, selectOutput, selectInput, formats, frequencies, active, play_gain, record_gain, elapsedTime, currentSound, playLatency, scaling, encodings, rates, play, stop, or pause}
+
+-test audio-1.2 {snack::audio outputDevices command} {
+- set devs [snack::audio outputDevices]
+- set res [expr [string length $devs] > 0]
+- set res
+-} 1
+-
+-test audio-1.3 {snack::audio inputDevices command} {
+- set devs [snack::audio inputDevices]
+- set res [expr [string length $devs] > 0]
+- set res
+-} 1
+-
+ test audio-1.4 {snack::audio selectOutput command} {
+ catch {snack::audio selectOutput junk} msg
+ set msg
+ } {No such device: junk}
+
+-test audio-1.5 {snack::audio selectOutput command} {
+- set dev [lindex [snack::audio outputDevices] 0]
+- catch {snack::audio selectOutput $dev}
+-} 0
+-
+ test audio-1.6 {snack::audio selectInput command} {
+ catch {snack::audio selectInput junk} msg
+ set msg
+ } {No such device: junk}
+
+-test audio-1.7 {snack::audio selectInput command} {
+- set dev [lindex [snack::audio inputDevices] 0]
+- catch {snack::audio selectInput $dev}
+-} 0
+-
+ # cleanup
+ ::tcltest::cleanupTests
+ return