summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-17 00:20:53 +0200
committerDavid Robillard <d@drobilla.net>2018-09-17 00:20:53 +0200
commit29764eef1401dac32bc968f1ffdf55257e8bb4dd (patch)
tree0ce8cd40ad2b61cf6c3366a7091dd211b7decebc /test
parent62b184c18d90e2d973c7c4df0b712a03f4c2bbee (diff)
downloadraul-29764eef1401dac32bc968f1ffdf55257e8bb4dd.tar.gz
raul-29764eef1401dac32bc968f1ffdf55257e8bb4dd.tar.bz2
raul-29764eef1401dac32bc968f1ffdf55257e8bb4dd.zip
Fix Windows build
Diffstat (limited to 'test')
-rw-r--r--test/build_test.cpp7
-rw-r--r--test/sem_test.cpp2
2 files changed, 6 insertions, 3 deletions
diff --git a/test/build_test.cpp b/test/build_test.cpp
index 9de137c..cbf153d 100644
--- a/test/build_test.cpp
+++ b/test/build_test.cpp
@@ -21,14 +21,17 @@
#include "raul/Maid.hpp"
#include "raul/Noncopyable.hpp"
#include "raul/Path.hpp"
-#include "raul/Process.hpp"
#include "raul/RingBuffer.hpp"
#include "raul/Semaphore.hpp"
-#include "raul/Socket.hpp"
#include "raul/Symbol.hpp"
#include "raul/TimeSlice.hpp"
#include "raul/TimeStamp.hpp"
+#ifndef _WIN32
+#include "raul/Process.hpp"
+#include "raul/Socket.hpp"
+#endif
+
int
main()
{
diff --git a/test/sem_test.cpp b/test/sem_test.cpp
index 8daf82b..3830604 100644
--- a/test/sem_test.cpp
+++ b/test/sem_test.cpp
@@ -56,7 +56,7 @@ main()
const auto start = std::chrono::steady_clock::now();
sem.timed_wait(std::chrono::milliseconds(100));
const auto end = std::chrono::steady_clock::now();
- assert(end - start > std::chrono::milliseconds(100));
+ assert(end - start > std::chrono::milliseconds(80));
assert(end - start < std::chrono::milliseconds(200));
// Check that we can't successfully wait on a zero semaphore