Add tests for options_act

This commit is contained in:
Ola Bini 2015-09-15 17:27:51 +02:00
parent d062baac86
commit 5edd431d92
No known key found for this signature in database
GPG Key ID: 465757AF3914B4B7
5 changed files with 3404 additions and 7 deletions

View File

@ -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;

View File

@ -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

View File

@ -108,4 +108,3 @@ mock_saving_logv(int severity, log_domain_mask_t domain,
saved_logs = smartlist_new();
smartlist_add(saved_logs, e);
}

View File

@ -28,4 +28,3 @@ int mock_saved_severity_at(int ix);
int mock_saved_log_number(void);
#endif

File diff suppressed because it is too large Load Diff