aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-10-09 09:53:08 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-10-09 09:53:08 +0000
commit64b2ffbe912b1d54ce5703eb0d5b334043a9f3a0 (patch)
treeb30cecf207b407a8bdb982b1477afcf26365320c /src/testing
parentf1a2ee6e906e8855a7faf0f2df5c6ccb71c13e21 (diff)
downloadgnunet-64b2ffbe912b1d54ce5703eb0d5b334043a9f3a0.tar.gz
gnunet-64b2ffbe912b1d54ce5703eb0d5b334043a9f3a0.zip
- fix and doc
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c
index 852bae567..4e10d50e2 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -387,7 +387,7 @@ GNUNET_TESTING_system_create_with_portrange (const char *testdir,
387 387
388 GNUNET_assert (NULL != testdir); 388 GNUNET_assert (NULL != testdir);
389 system = GNUNET_malloc (sizeof (struct GNUNET_TESTING_System)); 389 system = GNUNET_malloc (sizeof (struct GNUNET_TESTING_System));
390 if (NULL != (system->tmppath = getenv ("GNUNET_TESTING_PREFIX"))) 390 if (NULL == (system->tmppath = getenv ("GNUNET_TESTING_PREFIX")))
391 system->tmppath = GNUNET_DISK_mkdtemp (testdir); 391 system->tmppath = GNUNET_DISK_mkdtemp (testdir);
392 else 392 else
393 system->tmppath = GNUNET_strdup (system->tmppath); 393 system->tmppath = GNUNET_strdup (system->tmppath);
@@ -434,7 +434,8 @@ GNUNET_TESTING_system_create_with_portrange (const char *testdir,
434 * 434 *
435 * @param testdir only the directory name without any path. This is used for all 435 * @param testdir only the directory name without any path. This is used for all
436 * service homes; the directory will be created in a temporary location 436 * service homes; the directory will be created in a temporary location
437 * depending on the underlying OS 437 * depending on the underlying OS. This variable will be
438 * overridden with the value of the environmental variable
438 * @param trusted_ip the ip address which will be set as TRUSTED HOST in all 439 * @param trusted_ip the ip address which will be set as TRUSTED HOST in all
439 * service configurations generated to allow control connections from 440 * service configurations generated to allow control connections from
440 * this ip. This can either be a single ip address or a network address 441 * this ip. This can either be a single ip address or a network address