From e71bd6267e1ee62acdb4b3f87e802d49d9c0820e Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Tue, 29 Jan 2019 11:55:16 -0800 Subject: [PATCH] [test] fix PRETTY_FILES definition in unit test makefile (#3532) The `test_string` source is also made "pretty". --- tests/unit/Makefile.am | 2 +- tests/unit/test_string.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am index 6daa61033..66509edbf 100644 --- a/tests/unit/Makefile.am +++ b/tests/unit/Makefile.am @@ -245,7 +245,7 @@ PRETTY_FILES = \ $(test_pskc_SOURCES) \ $(test_spinel_decoder_SOURCES) \ $(test_spinel_encoder_SOURCES) \ - $(test_string) \ + $(test_string_SOURCES) \ $(test_strlcat_SOURCES) \ $(test_strlcpy_SOURCES) \ $(test_strnlen_SOURCES) \ diff --git a/tests/unit/test_string.cpp b/tests/unit/test_string.cpp index b8abdf10b..1967aaacc 100644 --- a/tests/unit/test_string.cpp +++ b/tests/unit/test_string.cpp @@ -41,15 +41,14 @@ enum kStringSize = 10, }; -template -void PrintString(const char *aName, const String aString) +template void PrintString(const char *aName, const String aString) { printf("\t%s = [%d] \"%s\"\n", aName, aString.GetLength(), aString.AsCString()); } void TestString(void) { - otError error; + otError error; String str1; String str2("abc"); String str3("%d", 12);