From 301fcab43e6420977e0de95b10f33d24b16e9535 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Jul 2020 10:55:20 +0200 Subject: Use everything in build test Annoyingly, include-what-you-use does not have a suppression mechanism, so minimally use everything in the build test to avoid include warnings. --- test/build_test.cpp | 51 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) (limited to 'test/build_test.cpp') diff --git a/test/build_test.cpp b/test/build_test.cpp index cbf153d..31b133a 100644 --- a/test/build_test.cpp +++ b/test/build_test.cpp @@ -28,12 +28,59 @@ #include "raul/TimeStamp.hpp" #ifndef _WIN32 -#include "raul/Process.hpp" -#include "raul/Socket.hpp" +# include "raul/Process.hpp" +# include "raul/Socket.hpp" #endif +class DeletableThing : public Raul::Deletable +{ +}; + +class NonCopyableThing : public Raul::Noncopyable +{ +}; + int main() { + Raul::Array array; + DeletableThing deletable; + Raul::DoubleBuffer double_buffer(0); + Raul::Maid maid; + NonCopyableThing non_copyable; + Raul::Path path; + Raul::RingBuffer ring_buffer(64u); + Raul::Semaphore semaphore(0u); + Raul::Symbol symbol("foo"); + Raul::TimeSlice time_slice(48000u, 960u, 120.0); + + Raul::TimeStamp time_stamp(Raul::TimeUnit(Raul::TimeUnit::BEATS, 960u)); + + try { + Raul::Symbol bad_symbol("not a valid symbol!"); + (void)bad_symbol; + } catch (const Raul::Exception&) { + } + +#ifndef _WIN32 + const char* cmd[] = {"echo"}; + Raul::Process::launch(cmd); + + Raul::Socket socket(Raul::Socket::Type::UNIX); + + (void)socket; +#endif + + (void)array; + (void)deletable; + (void)double_buffer; + (void)maid; + (void)non_copyable; + (void)path; + (void)ring_buffer; + (void)symbol; + (void)time_slice; + (void)time_stamp; + return 0; } -- cgit v1.2.1