From 710c5095497fa355946f0032031703ddc5104b94 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Feb 2017 19:41:46 +0100 Subject: Fix test suite --- test/build_test.cpp | 8 +++----- test/thread_test.cpp | 7 +++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/test/build_test.cpp b/test/build_test.cpp index f645588..dabc207 100644 --- a/test/build_test.cpp +++ b/test/build_test.cpp @@ -1,6 +1,6 @@ /* This file is part of Raul. - Copyright 2007-2013 David Robillard + Copyright 2007-2017 David Robillard Raul is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -15,7 +15,6 @@ */ #include "raul/Array.hpp" -#include "raul/barrier.hpp" #include "raul/Deletable.hpp" #include "raul/DoubleBuffer.hpp" #include "raul/Exception.hpp" @@ -24,12 +23,11 @@ #include "raul/Path.hpp" #include "raul/Process.hpp" #include "raul/RingBuffer.hpp" -#include "raul/Semaphore.hpp" -#include "raul/Socket.hpp" #include "raul/SRMWQueue.hpp" #include "raul/SRSWQueue.hpp" +#include "raul/Semaphore.hpp" +#include "raul/Socket.hpp" #include "raul/Symbol.hpp" -#include "raul/ThreadVar.hpp" #include "raul/TimeSlice.hpp" #include "raul/TimeStamp.hpp" #include "raul/URI.hpp" diff --git a/test/thread_test.cpp b/test/thread_test.cpp index d3983c0..3d1fc8b 100644 --- a/test/thread_test.cpp +++ b/test/thread_test.cpp @@ -1,6 +1,6 @@ /* This file is part of Raul. - Copyright 2007-2014 David Robillard + Copyright 2007-2017 David Robillard Raul is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -19,13 +19,12 @@ #include #include "raul/Semaphore.hpp" -#include "raul/ThreadVar.hpp" using namespace std; using namespace Raul; -Raul::ThreadVar var(0); -std::atomic n_errors(0); +thread_local int var(0); +std::atomic n_errors(0); static void wait_for_sem(Semaphore* sem) -- cgit v1.2.1