aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_pt.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-12-20 17:03:50 +0100
committerNick Mathewson <nickm@torproject.org>2018-12-21 13:26:38 -0500
commitbc836d559dce5756f8ad2150d2351220ba7610f2 (patch)
tree211b3e4247210579c38d99dd98c3714aef6e8de7 /src/test/test_pt.c
parent2322b56389626969b85da605240cbaafbb98bb33 (diff)
downloadtor-bc836d559dce5756f8ad2150d2351220ba7610f2.tar.gz
tor-bc836d559dce5756f8ad2150d2351220ba7610f2.zip
Don't initialize the process module manually in tests.
It's not longer needed for us to initialize the process module in tests. See: https://bugs.torproject.org/28847
Diffstat (limited to 'src/test/test_pt.c')
-rw-r--r--src/test/test_pt.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/test_pt.c b/src/test/test_pt.c
index 8fcdd5c1e8..c8b9d18823 100644
--- a/src/test/test_pt.c
+++ b/src/test/test_pt.c
@@ -151,8 +151,6 @@ test_pt_get_transport_options(void *arg)
config_line_t *cl = NULL;
(void)arg;
- process_init();
-
execve_args = tor_malloc(sizeof(char*)*2);
execve_args[0] = tor_strdup("cheeseshop");
execve_args[1] = NULL;
@@ -192,7 +190,6 @@ test_pt_get_transport_options(void *arg)
config_free_lines(cl);
managed_proxy_destroy(mp, 0);
smartlist_free(transport_list);
- process_free_all();
}
static void
@@ -256,8 +253,6 @@ test_pt_get_extrainfo_string(void *arg)
char *s = NULL;
(void) arg;
- process_init();
-
argv1 = tor_malloc_zero(sizeof(char*)*3);
argv1[0] = tor_strdup("ewige");
argv1[1] = tor_strdup("Blumenkraft");
@@ -291,7 +286,6 @@ test_pt_get_extrainfo_string(void *arg)
smartlist_free(t1);
smartlist_free(t2);
tor_free(s);
- process_free_all();
}
static int
@@ -347,8 +341,6 @@ test_pt_configure_proxy(void *arg)
managed_proxy_t *mp = NULL;
(void) arg;
- process_init();
-
dummy_state = tor_malloc_zero(sizeof(or_state_t));
MOCK(process_read_stdout, process_read_stdout_replacement);
@@ -463,7 +455,6 @@ test_pt_configure_proxy(void *arg)
tor_free(mp->argv[0]);
tor_free(mp->argv);
tor_free(mp);
- process_free_all();
}
/* Test the get_pt_proxy_uri() function. */