Permalink
Browse files

Conditionally compiling Java components of State tests.

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1338401 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 9b44d4f commit 22bfadc5e9750fcd92f155f79a19dabc0a7ff2b3 @benh benh committed May 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/tests/state_tests.cpp
@@ -34,7 +34,9 @@
#include "state/state.hpp"
+#ifdef MESOS_HAS_JAVA
#include "tests/base_zookeeper_test.hpp"
+#endif
#include "tests/utils.hpp"
using namespace mesos;
@@ -236,6 +238,7 @@ TEST_F(LevelDBStateTest, GetGetSetSetGet)
}
+#ifdef MESOS_HAS_JAVA
class ZooKeeperStateTest : public mesos::internal::test::BaseZooKeeperTest
{
public:
@@ -275,3 +278,4 @@ TEST_F(ZooKeeperStateTest, GetGetSetSetGet)
{
GetGetSetSetGet(state);
}
+#endif // MESOS_HAS_JAVA

0 comments on commit 22bfadc

Please sign in to comment.