From 7b0537fb54a14736322a0689cf2f9d248cdf5e0e Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Mon, 20 May 2019 08:52:49 -0700 Subject: [PATCH] [tests] make pretty and update makefile (#3835) * change the include order (make pretty) * include header files in PRETTY_FILES --- tests/unit/Makefile.am | 3 ++- tests/unit/test_platform.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am index 9ac7344f2..e1fce7f15 100644 --- a/tests/unit/Makefile.am +++ b/tests/unit/Makefile.am @@ -134,7 +134,7 @@ check_PROGRAMS += \ test-ncp-buffer \ test-spinel-decoder \ test-spinel-encoder \ - $(NULL) + $(NULL) if OPENTHREAD_ENABLE_NCP_UART check_PROGRAMS += \ @@ -243,6 +243,7 @@ test_toolchain_LDADD = $(NULL) test_toolchain_SOURCES = test_toolchain.cpp test_toolchain_c.c PRETTY_FILES = \ + $(noinst_HEADERS) \ $(test_address_sanitizer_SOURCES) \ $(test_aes_SOURCES) \ $(test_child_SOURCES) \ diff --git a/tests/unit/test_platform.h b/tests/unit/test_platform.h index ca32cdc0e..3c20e0a75 100644 --- a/tests/unit/test_platform.h +++ b/tests/unit/test_platform.h @@ -39,10 +39,10 @@ #include #include +#include #include #include #include -#include #include "common/code_utils.hpp" #include "common/instance.hpp"