aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_limited_sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_transport_api_limited_sockets.c')
-rw-r--r--src/transport/test_transport_api_limited_sockets.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/transport/test_transport_api_limited_sockets.c b/src/transport/test_transport_api_limited_sockets.c
index 015c28c16..8b8cdc07a 100644
--- a/src/transport/test_transport_api_limited_sockets.c
+++ b/src/transport/test_transport_api_limited_sockets.c
@@ -304,7 +304,6 @@ int
304main (int argc, char *argv[]) 304main (int argc, char *argv[])
305{ 305{
306 int ret = 0; 306 int ret = 0;
307 int nat_res;
308 307
309 test_plugin = NULL; 308 test_plugin = NULL;
310 309
@@ -321,25 +320,6 @@ main (int argc, char *argv[])
321#endif 320#endif
322 NULL); 321 NULL);
323 322
324 if ((test_plugin != NULL) &&
325 ((strcmp (test_plugin, "tcp_nat") == 0) ||
326 (strcmp (test_plugin, "udp_nat") == 0)))
327 {
328 nat_res = GNUNET_OS_check_helper_binary ("gnunet-nat-server");
329 if (GNUNET_NO == nat_res)
330 {
331 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Cannot run NAT test: `%s' %s \n",
332 "gnunet-nat-server", "SUID not set");
333 return 0;
334 }
335 if (GNUNET_SYSERR == nat_res)
336 {
337 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Cannot run NAT test: `%s' %s \n",
338 "gnunet-nat-server", "file not found");
339 return 0;
340 }
341 }
342
343#if !HAVE_SETRLIMIT 323#if !HAVE_SETRLIMIT
344 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Cannot run test on this system\n"); 324 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Cannot run test on this system\n");
345 325