2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-10-07 13:36:21 +00:00

[master] introduced a short term workaround to fix build failure with clang++

on freebsd by reducing the amount of code to be compiled.
okayed on jabber.  will need to create a ticket for a more complete solution.
This commit is contained in:
JINMEI Tatuya
2011-09-29 19:05:13 +00:00
parent 41cbf5a91b
commit 53d45f54e3

View File

@@ -851,7 +851,17 @@ public:
// The following two lines instantiate test cases with concrete accessor
// classes to be tested.
// XXX: clang++ installed on our FreeBSD buildbot cannot complete compiling
// this file, seemingly due to the size of the code. We'll consider more
// complete workaround, but for a short term workaround we'll reduce the
// number of tested accessor classes (thus reducing the amount of code
// to be compiled) for this particular environment.
#if defined(__clang__) && defined(__FreeBSD__)
typedef ::testing::Types<MockAccessor> TestAccessorTypes;
#else
typedef ::testing::Types<MockAccessor, TestSQLite3Accessor> TestAccessorTypes;
#endif
TYPED_TEST_CASE(DatabaseClientTest, TestAccessorTypes);
// In some cases the entire test fixture is for the mock accessor only.