summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Laboissiere <rafael@debian.org>2024-04-06 01:20:10 -0300
committerRafael Laboissière <rafael@debian.org>2024-04-06 01:20:10 -0300
commit51dcfd4f05ebf6680ae19e1cc78837ed7a5d6f0a (patch)
treec3bf6e71f10c84bf5071eecf50f73f8b9b32bdf8
parent690e5bde2220298cb41bb338cde7645272769c5f (diff)
Allow some problematic unit tests to fail
Forwarded: not-needed Last-Update: 2023-06-03 Gbp-Pq: Name xtest-in-unit-tests.patch
-rw-r--r--inst/instrhwinfo.m2
-rw-r--r--inst/tcpip.m2
-rw-r--r--src/tcp/__tcp_properties__.cc8
-rw-r--r--src/tcp/tcp.cc4
-rw-r--r--src/tcp/tcp_close.cc2
-rw-r--r--src/tcp/tcp_read.cc2
-rw-r--r--src/tcp/tcp_timeout.cc2
-rw-r--r--src/tcp/tcp_write.cc2
8 files changed, 12 insertions, 12 deletions
diff --git a/inst/instrhwinfo.m b/inst/instrhwinfo.m
index 70a1cf6..e8d469a 100644
--- a/inst/instrhwinfo.m
+++ b/inst/instrhwinfo.m
@@ -156,7 +156,7 @@ endfunction
%! # could fail if no i2c ports or not configured
%! assert(!isempty(instrhwinfo("i2c")))
-%!test
+%!xtest
%! p = pkg('describe', 'instrument-control');
%! hw = instrhwinfo ();
%! assert (hw.ToolboxVersion, p{1}.version)
diff --git a/inst/tcpip.m b/inst/tcpip.m
index eec4277..1595a00 100644
--- a/inst/tcpip.m
+++ b/inst/tcpip.m
@@ -72,7 +72,7 @@ function out = tcpip (varargin)
endfunction
-%!test
+%!xtest
%! a = tcpip ("octave.org", 80);
%! assert(isa(a, "octave_tcp"));
%! fclose(a);
diff --git a/src/tcp/__tcp_properties__.cc b/src/tcp/__tcp_properties__.cc
index b701cb2..4ca11e7 100644
--- a/src/tcp/__tcp_properties__.cc
+++ b/src/tcp/__tcp_properties__.cc
@@ -97,7 +97,7 @@ Undocumented internal function.\n\
%!shared ip
%! ip = resolvehost("www.octave.org", "address");
-%!test
+%!xtest
%! # test get
%! a = tcp (ip, 80);
%! assert (__tcp_properties__ (a,"type"), "tcp");
@@ -110,7 +110,7 @@ Undocumented internal function.\n\
%! tcp_close (a);
%! assert (__tcp_properties__ (a,"status"), "closed");
-%!test
+%!xtest
%! # test set
%! a = tcp(ip, 80);
%! __tcp_properties__ (a, 'name', "mytest");
@@ -118,7 +118,7 @@ Undocumented internal function.\n\
%! fail ("__tcp_properties__ (a,'invalid', 1)", "invalid property name");
%! tcp_close (a);
-%!test
+%!xtest
%! # test flush
%! a = tcp(ip, 80);
%! __tcp_properties__ (a, 'flush', 0);
@@ -132,7 +132,7 @@ Undocumented internal function.\n\
%!error <wrong number of arguments> __tcp_properties__ (1)
-%!test
+%!xtest
%! a = tcp (ip, 80);
%! fail ("__tcp_properties__ (a, 'name', 'test', 0)", "wrong number of arguments");
%! tcp_close (a);
diff --git a/src/tcp/tcp.cc b/src/tcp/tcp.cc
index 31819f9..925e3ea 100644
--- a/src/tcp/tcp.cc
+++ b/src/tcp/tcp.cc
@@ -203,14 +203,14 @@ number of bytes currently available to read (readonly)\n \
}
#if 0
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80);
%! assert (! isnull (a));
%! assert (isa (a, 'octave_tcp'));
%! tcp_close (a);
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80, 'name', 'test', 'timeout', 2.5);
%! assert (! isnull (a));
diff --git a/src/tcp/tcp_close.cc b/src/tcp/tcp_close.cc
index 8acba48..785e9a2 100644
--- a/src/tcp/tcp_close.cc
+++ b/src/tcp/tcp_close.cc
@@ -60,7 +60,7 @@ None\n \
#endif
}
#if 0
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80);
%! tcp_close (a);
diff --git a/src/tcp/tcp_read.cc b/src/tcp/tcp_read.cc
index 534a50a..9db8235 100644
--- a/src/tcp/tcp_read.cc
+++ b/src/tcp/tcp_read.cc
@@ -114,7 +114,7 @@ Read from tcp interface.\n \
}
#if 0
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80);
%! assert (! isnull (a));
diff --git a/src/tcp/tcp_timeout.cc b/src/tcp/tcp_timeout.cc
index e40a2fa..f11902f 100644
--- a/src/tcp/tcp_timeout.cc
+++ b/src/tcp/tcp_timeout.cc
@@ -82,7 +82,7 @@ If @var{timeout} parameter is omitted, the tcp_timeout() shall return current ti
}
#if 0
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80);
%! assert(tcp_timeout(a), -1);
diff --git a/src/tcp/tcp_write.cc b/src/tcp/tcp_write.cc
index d899b40..abd938b 100644
--- a/src/tcp/tcp_write.cc
+++ b/src/tcp/tcp_write.cc
@@ -93,7 +93,7 @@ Upon successful completion, tcp_write() shall return the number of bytes written
%!error <Invalid call to tcp_write> tcp_write()
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80);
%! # call HTTP HEAD