From 22bfadc5e9750fcd92f155f79a19dabc0a7ff2b3 Mon Sep 17 00:00:00 2001 From: Benjamin Hindman Date: Mon, 14 May 2012 20:59:22 +0000 Subject: [PATCH] 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 --- src/tests/state_tests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/state_tests.cpp b/src/tests/state_tests.cpp index 77b7369a1f9..ca1180e7900 100644 --- a/src/tests/state_tests.cpp +++ b/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