aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@gmail.com>2011-07-13 18:59:52 +0200
committerGeorge Kadianakis <desnacked@gmail.com>2011-07-13 18:59:52 +0200
commit810a7a5fa0973451881a874a08594937a8274429 (patch)
tree2d5539e705f4e102da652e3d2a83102c60da1232 /src/test
parent73a1e98cb971f7d1105f2b6b2399ae2eeec36a96 (diff)
downloadtor-810a7a5fa0973451881a874a08594937a8274429.tar
tor-810a7a5fa0973451881a874a08594937a8274429.tar.gz
Make some utility functions.
* Create a function that will get input from a stream, so that we can communicate with the managed proxy. * Hackish change to tor_spawn_background() so that we can specify an environ for our spawn.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index c4769e640..c778faaca 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -1389,7 +1389,8 @@ run_util_spawn_background(const char *argv[], const char *expected_out,
char stdout_buf[100], stderr_buf[100];
/* Start the program */
- retval = tor_spawn_background(argv[0], &stdout_pipe, &stderr_pipe, argv);
+ retval = tor_spawn_background(argv[0], &stdout_pipe, &stderr_pipe,
+ argv, NULL);
tt_int_op(retval, >, 0);
tt_int_op(stdout_pipe, >, 0);
tt_int_op(stderr_pipe, >, 0);