From 8a0e98bab8a4bccd11adc0e2c838910ed1b6d794 Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 5 Feb 2018 16:11:49 +0000 Subject: Fix LAN discovery on FreeBSD. Also, add an auto-test for bootstrap and for LAN discovery. Bootstrap is never tested otherwise, and LAN discovery is a prerequisite for everything else. Having these two tests lets us rule out or identify LAN discovery as a possible cause for test failures. --- auto_tests/monolith_test.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'auto_tests/monolith_test.cpp') diff --git a/auto_tests/monolith_test.cpp b/auto_tests/monolith_test.cpp index 088b4e01..b1e13448 100644 --- a/auto_tests/monolith_test.cpp +++ b/auto_tests/monolith_test.cpp @@ -1,6 +1,13 @@ -/* Auto Tests: One instance. +/* Nop-test, just to make sure our code compiles as C++. */ +#ifdef __FreeBSD__ +// Include this here, because _XOPEN_SOURCE hides symbols we need. +// +// https://lists.freebsd.org/pipermail/freebsd-standards/2004-March/000474.html. +#include +#endif + #define _DARWIN_C_SOURCE #define _XOPEN_SOURCE 600 @@ -21,6 +28,10 @@ namespace TCP_test { #include "TCP_test.c" } +namespace bootstrap_test +{ +#include "bootstrap_test.c" +} namespace conference_test { #include "conference_test.c" @@ -41,6 +52,10 @@ namespace file_saving_test { #include "file_saving_test.c" } +namespace lan_discovery_test +{ +#include "lan_discovery_test.c" +} namespace messenger_test { #include "messenger_test.c" -- cgit v1.2.3