]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't include the source file for the code under test unless we really need to
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 28 Oct 2021 18:55:00 +0000 (14:55 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 28 Oct 2021 18:55:00 +0000 (14:55 -0400)
src/lib/server/trunk_tests.c
src/lib/util/cursor_tests.c
src/lib/util/dcursor_tests.c
src/lib/util/dict_test.h
src/lib/util/pair_list_perf_test.c
src/lib/util/rb_tests.c

index c93da4cd269c13392f18fff2b7e597c00cf184d3..5a56292442fa72fca272311c5c433bba5af9f120 100644 (file)
@@ -1,9 +1,8 @@
 #include <freeradius-devel/util/acutest.h>
+#include <freeradius-devel/server/trunk.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 
-#include "trunk.c"
-
 #if 0
 //#include <gperftools/profiler.h>
 typedef struct {
index fd7653ab920e6ac2fd344c58b5884208942e4997..18208f3848bbed23911f67b0f3e270d7770107c8 100644 (file)
@@ -1,6 +1,5 @@
 #include <freeradius-devel/util/acutest.h>
-
-#include "cursor.c"
+#include <freeradius-devel/util/cursor.h>
 
 typedef struct {
        char const *name;
index 65b134d4a2d9ee167b33f1ecec065cf6339052f8..c6b98a94d783b2fc774b5a82a32f57c77076b808 100644 (file)
@@ -1,9 +1,9 @@
 #include <freeradius-devel/util/acutest.h>
+#include <freeradius-devel/util/dcursor.h>
 //#include <talloc.h>
 //nclude <string.h>
 //#include <stdint.h>
 
-#include "dcursor.c"
 
 typedef struct {
        char const *name;
index b94e2d0d1bb874c9d2bf91cfaf73285a0d99ac99..747f066fd20425276e99178e0f1a9eae15908f9b 100644 (file)
@@ -23,6 +23,8 @@
  */
 RCSIDH(dict_test_h, "$Id$")
 
+#include <freeradius-devel/util/dict.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
index 21932806521734fd73abbc3f12315a39b4ecbd86..ee7a857f9a8d603946023ac862d4acee868f5a40 100644 (file)
@@ -46,7 +46,6 @@ static void pair_list_perf_init(void);
 #undef WITH_VERIFY_PTR
 #endif
 
-#include "pair.c"
 #include <freeradius-devel/util/dict_test.h>
 #include <freeradius-devel/server/base.h>
 
index 4998139919826148b8154d3a2e1be09224319115..f87e6855e8aeec312c37d6c8ba8f7ae8a7f079b3 100644 (file)
@@ -23,8 +23,7 @@
 #include <freeradius-devel/util/acutest.h>
 #include <freeradius-devel/util/acutest_helpers.h>
 #include <freeradius-devel/util/rand.h>
-
-#include "rb.c"
+#include <freeradius-devel/util/rb.h>
 
 #define MAXSIZE 128