Skip to content

Commit

Permalink
Merge pull request mixxxdj#554 from default-kramer/fix_windows_build
Browse files Browse the repository at this point in the history
Use a cross-platform sleep to fix a compile error on Windows
  • Loading branch information
daschuer committed Apr 14, 2015
2 parents 53c28cb + 4e28652 commit e1fb60f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/enginebuffertest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <gmock/gmock.h>

#include <QtDebug>
#include <QTest>

#include "basetrackplayer.h"
#include "configobject.h"
Expand Down Expand Up @@ -213,7 +214,7 @@ TEST_F(EngineBufferTest, SoundTouchCrashTest) {
ProcessBuffer();
for (int i = 0; i < 10 && !channel4->getEngineBuffer()->isTrackLoaded();
++i) {
sleep(1);
QTest::qSleep(1000); // millis
}
ASSERT_TRUE(channel4->getEngineBuffer()->isTrackLoaded());

Expand Down

0 comments on commit e1fb60f

Please sign in to comment.