summaryrefslogtreecommitdiff
path: root/src/tcp/__tcp_properties__.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp/__tcp_properties__.cc')
-rw-r--r--src/tcp/__tcp_properties__.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tcp/__tcp_properties__.cc b/src/tcp/__tcp_properties__.cc
index 4ca11e7..e03f229 100644
--- a/src/tcp/__tcp_properties__.cc
+++ b/src/tcp/__tcp_properties__.cc
@@ -95,7 +95,11 @@ Undocumented internal function.\n\
}
#if 0
%!shared ip
-%! ip = resolvehost("www.octave.org", "address");
+%! try
+%! ip = resolvehost("www.octave.org", "address");
+%! catch
+%! warning ("Network access is neede for running the unit tests.");
+%! end_try_catch
%!xtest
%! # test get