summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-18 19:41:46 +0100
committerDavid Robillard <d@drobilla.net>2017-02-18 19:41:46 +0100
commit710c5095497fa355946f0032031703ddc5104b94 (patch)
tree37dd227634e96b90bea6e3facc312cad211dd436
parentf4d0fd484768fd2d4af90ad76a5e6fcff57dcd1e (diff)
downloadraul-710c5095497fa355946f0032031703ddc5104b94.tar.gz
raul-710c5095497fa355946f0032031703ddc5104b94.tar.bz2
raul-710c5095497fa355946f0032031703ddc5104b94.zip
Fix test suite
-rw-r--r--test/build_test.cpp8
-rw-r--r--test/thread_test.cpp7
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 <http://drobilla.net>
+ Copyright 2007-2017 David Robillard <http://drobilla.net>
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 <http://drobilla.net>
+ Copyright 2007-2017 David Robillard <http://drobilla.net>
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 <thread>
#include "raul/Semaphore.hpp"
-#include "raul/ThreadVar.hpp"
using namespace std;
using namespace Raul;
-Raul::ThreadVar<int> var(0);
-std::atomic<int> n_errors(0);
+thread_local int var(0);
+std::atomic<int> n_errors(0);
static void
wait_for_sem(Semaphore* sem)