public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] pan/ltp-pan.c: fix incorrect number of total tests
@ 2017-04-07  5:58 Xiao Yang
  2017-04-10 13:50 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Xiao Yang @ 2017-04-07  5:58 UTC (permalink / raw)
  To: ltp

The number of total tests should indicate the number of tests
which have been run, but it indicates the number of tests defined
in command-file.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 pan/ltp-pan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pan/ltp-pan.c b/pan/ltp-pan.c
index 1614c70..beed623 100644
--- a/pan/ltp-pan.c
+++ b/pan/ltp-pan.c
@@ -645,7 +645,7 @@ int main(int argc, char **argv)
 				strerror(errno));
 		fprintf(logfile,
 			"\n-----------------------------------------------\n");
-		fprintf(logfile, "Total Tests: %d\n", coll->cnt);
+		fprintf(logfile, "Total Tests: %d\n", (coll->cnt - starts));
 		fprintf(logfile, "Total Skipped Tests: %d\n", tconfcnt);
 		fprintf(logfile, "Total Failures: %d\n", failcnt);
 		fprintf(logfile, "Kernel Version: %s\n", unamebuf.release);
-- 
1.8.3.1




^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-04-13  2:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-07  5:58 [LTP] [PATCH] pan/ltp-pan.c: fix incorrect number of total tests Xiao Yang
2017-04-10 13:50 ` Cyril Hrubis
2017-04-11  3:36   ` Xiao Yang
2017-04-12 15:31     ` Cyril Hrubis
2017-04-13  2:47       ` Xiao Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox