File: midi-device-devinfo-xtest.patch

package info (click to toggle)
octave-audio 2.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: sh: 2,869; cpp: 886; python: 438; makefile: 228; xml: 21
file content (63 lines) | stat: -rw-r--r-- 1,695 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Description: Mark some unit tests as xtest
 The unit tests in functions mididevice, mididevinfo, midicontrols,
 midiflush, and midicallback fail because the MIDI device /dev/snd/seq
 has access restricted to the audio group in Debian.  This tests are
 then transformed from %!test into %!xtest.
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: not-needed
Last-Update: 2020-06-22

--- octave-audio-2.0.1.orig/inst/mididevice.m
+++ octave-audio-2.0.1/inst/mididevice.m
@@ -190,7 +190,7 @@ function t = match_name_and_type(x, name
   t = (strncmpi(x.Name, name, length(name)) && strcmpi(x.Direction,type));
 endfunction
 
-%!test
+%!xtest
 %! a = mididevice(0);
 %! assert(isa(a, "octave_midi"));
 
--- octave-audio-2.0.1.orig/inst/mididevinfo.m
+++ octave-audio-2.0.1/inst/mididevinfo.m
@@ -103,7 +103,7 @@ function out = mididevinfo ()
 
 endfunction
 
-%!test
+%!xtest
 %! a = mididevinfo;
 %! assert(length(a) > 0);
 %! x = a.input;
--- octave-audio-2.0.5.orig/inst/midicontrols.m
+++ octave-audio-2.0.5/inst/midicontrols.m
@@ -261,6 +261,6 @@ classdef midicontrols < handle
   endmethods
 endclassdef
 
-%!test
+%!xtest
 %! a = midicontrols();
 %! assert(isa(a, "midicontrols"));
--- octave-audio-2.0.5.orig/inst/midiflush.m
+++ octave-audio-2.0.5/inst/midiflush.m
@@ -45,7 +45,7 @@ function midiflush (dev)
 
 endfunction
 
-%!test
+%!xtest
 %! a = mididevice(0);
 %! assert(isa(a, "octave_midi"));
 %! midiflush(a);
--- octave-audio-2.0.5.orig/inst/midicallback.m
+++ octave-audio-2.0.5/inst/midicallback.m
@@ -89,7 +89,7 @@ endfunction
 %! # do nothing
 %!endfunction
 
-%!test
+%!xtest
 %! a = midicontrols();
 %! assert(isa(a, "midicontrols"));
 %! assert(midicallback(a), []);