diff options
-rw-r--r-- | src/transport/gnunet-helper-transport-wlan-dummy.c | 4 | ||||
-rw-r--r-- | src/transport/test_plugin_transport.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/transport/gnunet-helper-transport-wlan-dummy.c b/src/transport/gnunet-helper-transport-wlan-dummy.c index f02d8bdd7..b8c1501d2 100644 --- a/src/transport/gnunet-helper-transport-wlan-dummy.c +++ b/src/transport/gnunet-helper-transport-wlan-dummy.c | |||
@@ -30,12 +30,12 @@ | |||
30 | /** | 30 | /** |
31 | * Name of the fifo to use for IPC with the other dummy process. | 31 | * Name of the fifo to use for IPC with the other dummy process. |
32 | */ | 32 | */ |
33 | #define FIFO_FILE1 "/tmp/test-transport/api-wlan-p1/WLAN_FIFO_in" | 33 | #define FIFO_FILE1 GNUNET_DISK_mktemp("test-transport/api-wlan-p1/") "WLAN_FIFO_in" |
34 | 34 | ||
35 | /** | 35 | /** |
36 | * Name of the fifo to use for IPC with the other dummy process. | 36 | * Name of the fifo to use for IPC with the other dummy process. |
37 | */ | 37 | */ |
38 | #define FIFO_FILE2 "/tmp/test-transport/api-wlan-p1/WLAN_FIFO_out" | 38 | #define FIFO_FILE2 GNUNET_DISK_mktemp("test-transport/api-wlan-p1/") "WLAN_FIFO_out" |
39 | 39 | ||
40 | /** | 40 | /** |
41 | * Maximum size of a message allowed in either direction | 41 | * Maximum size of a message allowed in either direction |
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index 1d92588ea..93e833aa8 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2009 GNUnet e.V. | 3 | Copyright (C) 2009, 2018 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -747,7 +747,7 @@ main (int argc, char * const *argv) | |||
747 | GNUNET_GETOPT_OPTION_END }; | 747 | GNUNET_GETOPT_OPTION_END }; |
748 | int ret; | 748 | int ret; |
749 | 749 | ||
750 | GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-plugin-transport"); | 750 | GNUNET_DISK_directory_remove GNUNET_DISK_mktemp("test-gnunetd-plugin-transport"); |
751 | 751 | ||
752 | char * const argv_prog[] = { "test_plugin_transport", "-c", | 752 | char * const argv_prog[] = { "test_plugin_transport", "-c", |
753 | "test_plugin_transport_data.conf", NULL }; | 753 | "test_plugin_transport_data.conf", NULL }; |
@@ -757,7 +757,7 @@ main (int argc, char * const *argv) | |||
757 | (GNUNET_OK | 757 | (GNUNET_OK |
758 | == GNUNET_PROGRAM_run (3, argv_prog, "test-plugin-transport", | 758 | == GNUNET_PROGRAM_run (3, argv_prog, "test-plugin-transport", |
759 | "testcase", options, &run, (void *) argv)) ? ok : 1; | 759 | "testcase", options, &run, (void *) argv)) ? ok : 1; |
760 | GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-plugin-transport"); | 760 | GNUNET_DISK_directory_remove GNUNET_DISK_mktemp("test-gnunetd-plugin-transport"); |
761 | return ret; | 761 | return ret; |
762 | } | 762 | } |
763 | 763 | ||