From 7e519e72d516dc03f60c25252928a24de8cc6e58 Mon Sep 17 00:00:00 2001 From: David Steele Date: Sat, 28 Mar 2020 18:20:29 -0400 Subject: [PATCH] Add TEST_TITLE_FMT() macro. --- test/src/common/harnessTest.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/src/common/harnessTest.h b/test/src/common/harnessTest.h index 33f2ad06f..8c6a861b3 100644 --- a/test/src/common/harnessTest.h +++ b/test/src/common/harnessTest.h @@ -354,6 +354,14 @@ Test title macro fflush(stdout); \ } while(0) +#define TEST_TITLE_FMT(format, ...) \ + do \ + { \ + hrnTestLogPrefix(__LINE__, false); \ + printf(format "\n", __VA_ARGS__); \ + fflush(stdout); \ + } while(0) + /*********************************************************************************************************************************** Is this a 64-bit system? If not then it is 32-bit since 16-bit systems are not supported. ***********************************************************************************************************************************/