Skip to content

Commit

Permalink
Merge pull request #1898 from rstudio/bugfix/Windows-Unit-Tests
Browse files Browse the repository at this point in the history
Fixed Windows unit tests building
  • Loading branch information
jmcphers committed Jan 2, 2018
2 parents 44ab55a + d5d8676 commit bfff3e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cpp/CMakeLists.txt
Expand Up @@ -218,7 +218,7 @@ if(WIN32)
include_directories(SYSTEM ${WINPTY_INCLUDEDIR})

# openssl for Windows
if(RSTUDIO_SESSLIBRARY)
if(RSTUDIO_SESSION_WIN64 OR RSTUDIO_SESSLIBRARY)
set(OPENSSL_ARCH "/x64/")
else()
set(OPENSSL_ARCH "/")
Expand Down
6 changes: 2 additions & 4 deletions src/cpp/core/system/ChildProcessSubprocPollTests.cpp
Expand Up @@ -16,7 +16,7 @@
#include "ChildProcessSubprocPoll.hpp"

#include <boost/bind.hpp>
#include <boost/asio/deadline_timer.hpp>
#include <boost/thread/thread.hpp>

#include <tests/TestThat.hpp>

Expand All @@ -39,9 +39,7 @@ const milliseconds kCheckCwdDelayExpired = milliseconds(45);

void blockingwait(milliseconds ms)
{
boost::asio::io_service io;
boost::asio::deadline_timer timer(io, ms);
timer.wait();
boost::this_thread::sleep(ms);
}

class NoSubProcPollingFixture
Expand Down

0 comments on commit bfff3e3

Please sign in to comment.