guard ncp spinel tests with OPENTHREAD_BUILD_TESTS (#187)

This commit is contained in:
Marcin K Szczodrak
2016-06-20 16:57:30 -07:00
committed by Jonathan Hui
parent 089a365b55
commit 40e01827ab
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -67,6 +67,8 @@ libopenthread_ncp_a_SOURCES = \
include_HEADERS = \
$(NULL)
if OPENTHREAD_BUILD_TESTS
noinst_PROGRAMS = spinel-test
spinel_test_SOURCES = spinel.c
spinel_test_CFLAGS = -DSPINEL_SELF_TEST=1
@@ -78,5 +80,6 @@ install-headers: install-includeHEADERS
if OPENTHREAD_BUILD_COVERAGE
CLEANFILES = $(wildcard *.gcda *.gcno)
endif # OPENTHREAD_BUILD_COVERAGE
endif # OPENTHREAD_BUILD_TESTS
include $(abs_top_nlbuild_autotools_dir)/automake/post.am
+1 -1
View File
@@ -568,7 +568,7 @@ exit:
void NcpBase::HandleCommandPropertySet(uint8_t header, spinel_prop_key_t key, const uint8_t *value_ptr,
uint16_t value_len)
{
int i;
unsigned i;
if (mSending)
{