From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] pan/ltp-pan.c: fix incorrect number of total tests
Date: Wed, 12 Apr 2017 17:31:31 +0200 [thread overview]
Message-ID: <20170412153131.GD25790@rei> (raw)
In-Reply-To: <58EC4F4B.7040003@cn.fujitsu.com>
Hi!
> Actually, the coll->cnt is number of tests loaded from the runtest file.
> However, starts is set to coll->cnt at first , and it reduces when
> completing one test.
> Please see the following code:
> cpid =
> run_child(coll->ary[c], running + i, quiet_mode,
> &failcnt, fmt_print, logfile);
> if (cpid != -1)
> ++num_active;
> if ((cpid != -1 || sequential) && starts > 0)
> --starts;
>
> I think that ltp-pan could indicate the number of tests which have been
> run when receiving one signal.
Hmm, ok, so unless starts is set to -1, which means "execute the testrun
until interrupted" this would result in the number of executed tests, if
starts is -1 the result is incorrect anyway.
But to get it really correct we should rather add a counter and count
each started test child or something.
> I am not familiar with ltp-pan code???so do you have some suggestions
> about it?
Well the ltp-pan code is messy and the tool is in a maintenance mode,
which means that we only do bugfixes. This looks like a bug so I'm not
against fixing it but at the same time I do not think that this is
important enough. So my suggestion would be to wait for the new LTP
test runner that I started to work on some time ago and keep up with
ltp-pan.c as it is until then.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2017-04-12 15:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2017-04-13 2:47 ` Xiao Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170412153131.GD25790@rei \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox