From c5269a59b011c8e961c7e88185b84e78af33d904 Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Wed, 14 Aug 2013 18:00:08 +0300 Subject: Test ExtORPort cookie initialization when file writing is broken. --- src/common/util.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/common/util.h') diff --git a/src/common/util.h b/src/common/util.h index 0a8e4a23fc..8dfb2de5fc 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -355,8 +355,9 @@ FILE *fdopen_file(open_file_t *file_data); int finish_writing_to_file(open_file_t *file_data); int abort_writing_to_file(open_file_t *file_data); int write_str_to_file(const char *fname, const char *str, int bin); -int write_bytes_to_file(const char *fname, const char *str, size_t len, - int bin); +MOCK_DECL(int, +write_bytes_to_file,(const char *fname, const char *str, size_t len, + int bin)); /** An ad-hoc type to hold a string of characters and a count; used by * write_chunks_to_file. */ typedef struct sized_chunk_t { -- cgit v1.2.3-54-g00ecf