aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-30 06:27:14 +0000
committerAndrea Shepard <andrea@torproject.org>2016-06-30 07:03:26 +0000
commitf99c9df02b6ac0c7804013bca951ecaf5744c2db (patch)
tree9a7447e0bb7ac51da35b6b2966baa83965adc358 /src/common/util.c
parent42f089473a50613ae62875ede386861e91123b78 (diff)
downloadtor-f99c9df02b6ac0c7804013bca951ecaf5744c2db.tar.gz
tor-f99c9df02b6ac0c7804013bca951ecaf5744c2db.zip
Make things mockable for dump_desc_populate_fifo_from_directory() unit test
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 97837f565d..725e110daa 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -3412,8 +3412,8 @@ smartlist_add_vasprintf(struct smartlist_t *sl, const char *pattern,
/** Return a new list containing the filenames in the directory <b>dirname</b>.
* Return NULL on error or if <b>dirname</b> is not a directory.
*/
-smartlist_t *
-tor_listdir(const char *dirname)
+MOCK_IMPL(smartlist_t *,
+tor_listdir, (const char *dirname))
{
smartlist_t *result;
#ifdef _WIN32