diff options
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r-- | src/testing/testing.c | 5 |
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 |