diff options
author | Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> | 2010-10-10 18:12:23 +0100 |
---|---|---|
committer | Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> | 2010-10-10 19:08:44 +0100 |
commit | 8a12ce2cf9bb6362e380e7efaee334d82cc3c7c8 (patch) | |
tree | 4599c8392a4308011625a7ccfe19e21466c342ba /src/common/util.h | |
parent | 68e576e9f92e94e27123d47ce27c56426eb06193 (diff) | |
download | tor-8a12ce2cf9bb6362e380e7efaee334d82cc3c7c8.tar.gz tor-8a12ce2cf9bb6362e380e7efaee334d82cc3c7c8.zip |
Add a unit test for tor_spawn_background
- Test sucessfully starting a process
- Test failing to find the executable
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 86555eeb19..8c2a9be325 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -350,6 +350,8 @@ HANDLE load_windows_system_library(const TCHAR *library_name); #ifdef UTIL_PRIVATE /* Prototypes for private functions only used by util.c (and unit tests) */ +int tor_spawn_background(const char *const filename, int *stdout_read, + int *stderr_read, const char **argv); void format_helper_exit_status(unsigned char child_state, int saved_errno, char *hex_errno); |