[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <181e4860e7f2b2dc8e4074e76d00cc99662c1fa1.1519423341.git.shuahkh@osg.samsung.com>
Date: Fri, 23 Feb 2018 15:11:39 -0700
From: Shuah Khan <shuahkh@....samsung.com>
To: shuah@...nel.org, dvhart@...radead.org, tbird20d@...il.com
Cc: Shuah Khan <shuahkh@....samsung.com>, tglx@...utronix.de,
mingo@...hat.com, peterz@...radead.org,
linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org
Subject: [PATCH 4/5] selftests: size call ksft_print_header() to print TAP header
Call ksft_print_header() to print TAP header. This change helps
prevent nested TAP headers when the test is run from run_tests
and from script generated by emit_tests as in both of these cases
KSFT_TAP_LEVEL will be set and ksft_print_header() will suppress
the nested TAP header from size test.
Signed-off-by: Shuah Khan <shuahkh@....samsung.com>
---
tools/testing/selftests/size/get_size.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/size/get_size.c b/tools/testing/selftests/size/get_size.c
index d4b59ab979a0..1280b09266f0 100644
--- a/tools/testing/selftests/size/get_size.c
+++ b/tools/testing/selftests/size/get_size.c
@@ -23,6 +23,8 @@
#include <sys/sysinfo.h>
#include <unistd.h>
+#include <stdio.h>
+#include "../kselftest.h"
#define STDOUT_FILENO 1
@@ -77,7 +79,7 @@ void _start(void)
unsigned long used;
static const char *test_name = " get runtime memory use\n";
- print("TAP version 13\n");
+ ksft_print_header();
print("# Testing system size.\n");
ccode = sysinfo(&info);
--
2.14.1
Powered by blists - more mailing lists