diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-03-07 10:22:00 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-03-16 14:38:28 -0400 |
commit | 360d043ac726ca5354bcb3aa1f138f910defc8ec (patch) | |
tree | 1d47c9c8688b0d5f8d7650d776477c14f94a82ca /src/test/test_consdiff.c | |
parent | 590ffdb2c9e0e3516fdb113cfa8b7a3f888cb970 (diff) | |
download | tor-360d043ac726ca5354bcb3aa1f138f910defc8ec.tar.gz tor-360d043ac726ca5354bcb3aa1f138f910defc8ec.zip |
Use "STATIC" to export consdiff fns for testing
Previously test_consdiff.c just did #include "consdiff.c", which is
not great style, and messes up coverage testing.
Diffstat (limited to 'src/test/test_consdiff.c')
-rw-r--r-- | src/test/test_consdiff.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/test_consdiff.c b/src/test/test_consdiff.c index 40fedf1156..a72b64ba32 100644 --- a/src/test/test_consdiff.c +++ b/src/test/test_consdiff.c @@ -2,10 +2,13 @@ * Copyright (c) 2014, The Tor Project, Inc. */ /* See LICENSE for licensing information */ +#define CONSDIFF_PRIVATE + #include "or.h" #include "test.h" -#include "consdiff.c" +#include "consdiff.h" +#include "routerparse.h" #ifndef OP_EQ #define OP_EQ == |