summaryrefslogtreecommitdiff
path: root/debian/patches/str2angle-xtest.patch
blob: def15dbfa6510e3fd28779f296ff9c1e01b05194 (plain)
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
Description: Transform some unit tests from %!test into %!xtest
 For some unknown reason, some units tests in inst/str2angle.m started
 to fail with the upgrade from bullseye to bookworm. In order to avoid
 the blocking of the libgdal28→libgdal29 transition, we declare the
 failing tests as xtest, for now.
 .
 For more context, see Bug#992528.
Author: Rafael Laboissière <rafael@debian.org>
Bug-Debian: https://bugs.debian.org/992528
Forwarded: no
Last-Update: 2021-08-24

--- octave-mapping-1.4.1.orig/inst/str2angle.m
+++ octave-mapping-1.4.1/inst/str2angle.m
@@ -124,7 +124,7 @@ function deg = str2angle (txt, verbose =
 endfunction
 
 
-%!test
+%!xtest
 %!shared tst, res
 %! tst = '191E21''3.1"\n12e 22''33.24"\n13E 23'' 33.344"\n14w24'' 33.4444"\n';
 %! tst = [tst '15S25''33.54444"\n16W26''33.644444''''\n17s27''33.7444444"\n'];
@@ -138,15 +138,15 @@ endfunction
 %!        27.959, -28.976];
 %! assert (str2angle (tst), res, 1e-3);
 
-%!test
+%!xtest
 %! tstc = strsplit (tst, "\n");
 %! assert (str2angle (tstc), res, 1e-3);
 
-%!test
+%!xtest
 %! tstc = strjoin (strsplit (tst, "\n"), "   ");
 %! assert (str2angle (tstc), res, 1e-3);
 
-%!test
+%!xtest
 %! assert (str2angle ('24E77''33"  25W43''57.7"'), [NaN, -25.7333], 1e-3);
 
 %!test