diff options
author | Ola Bini <ola@olabini.se> | 2015-09-15 17:27:51 +0200 |
---|---|---|
committer | Ola Bini <ola@olabini.se> | 2016-01-13 10:31:13 -0500 |
commit | 5edd431d923828bb7e3e021fe5e31a3cffdbb055 (patch) | |
tree | 69c9c2d9c58524d4ef8e7a37734f07e2cec370bf /src/common | |
parent | d062baac86c824f8a3ddfead3a8c88b3f87068c1 (diff) | |
download | tor-5edd431d923828bb7e3e021fe5e31a3cffdbb055.tar.gz tor-5edd431d923828bb7e3e021fe5e31a3cffdbb055.zip |
Add tests for options_act
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 3 | ||||
-rw-r--r-- | src/common/compat.h | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 0b8fcb7e64..c1d4f89621 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -2691,8 +2691,7 @@ static int uname_result_is_set = 0; /** Return a pointer to a description of our platform. */ -const char * -get_uname(void) +MOCK_IMPL(const char *, get_uname, (void)) { #ifdef HAVE_UNAME struct utsname u; diff --git a/src/common/compat.h b/src/common/compat.h index d38adca598..0717ed34f2 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -601,7 +601,7 @@ typedef enum { } socks5_reply_status_t; /* ===== OS compatibility */ -const char *get_uname(void); +MOCK_DECL(const char *, get_uname, (void)); uint16_t get_uint16(const void *cp) ATTR_NONNULL((1)); uint32_t get_uint32(const void *cp) ATTR_NONNULL((1)); @@ -708,4 +708,3 @@ ssize_t tor_getpass(const char *prompt, char *output, size_t buflen); #include "compat_threads.h" #endif - |