Commit 2e85cef3 authored by Harris Hancock's avatar Harris Hancock

Disable client/server tests in lite-mode

Code which relies on RPC clients and servers cannot compile in lite-mode.

Note that none of the FromAny static_asserts in common-test.c++ will
compile yet in MSVC. Nevertheless, the first three (FromAny<int>,
FromAny<Reader>, FromAny<Builder>) should reasonably work in lite-mode.
parent bb633cdb
......@@ -247,6 +247,8 @@ TEST(Any, AnyStructListCapInSchema) {
checkList(anyList.as<List<int>>(), {123, 456, 789});
}
#if !CAPNP_LITE
// This portion of the test relies on a Client, not present in lite-mode.
{
kj::EventLoop loop;
kj::WaitScope waitScope(loop);
......@@ -259,6 +261,7 @@ TEST(Any, AnyStructListCapInSchema) {
req.send().wait(waitScope);
EXPECT_EQ(1, callCount);
}
#endif
}
......
......@@ -77,9 +77,11 @@ using capnproto_test::capnp::test::TestInterface;
static_assert(equalTypes<FromAny<int>, int>(), "");
static_assert(equalTypes<FromAny<TestAllTypes::Reader>, TestAllTypes>(), "");
static_assert(equalTypes<FromAny<TestAllTypes::Builder>, TestAllTypes>(), "");
#if !CAPNP_LITE
static_assert(equalTypes<FromAny<TestAllTypes::Pipeline>, TestAllTypes>(), "");
static_assert(equalTypes<FromAny<TestInterface::Client>, TestInterface>(), "");
static_assert(equalTypes<FromAny<kj::Own<TestInterface::Server>>, TestInterface>(), "");
#endif
} // namespace
} // namespace capnp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment