[qmtest] Failed prerequisite is not failing a test
Mark Mitchell
mark at codesourcery.com
Tue Sep 14 17:40:10 UTC 2004
Abhijeet Bisain wrote:
> Hi all,
>
> I created a test using the GUI which has a prerequisite test that I
> know fails (it runs a perl script that does not exist). In the
> condition, I specify that the test should PASS. So, the real test
> program should not run, right? But in reality the program runs and the
> result of the test is PASS. Which means that either the prerequisite
> was not run of that its output was ignored.
>
> Is this a problem in qmtest or am I doing something wrong?
This is a common confusion: if you do not explicitly list the
prerequisite among the tests you want to run, then it will not be run.
We see prerequisites as purely an optimization: they provide a way of
skipping some tests if earlier tests do not work the way you think.
It's possible that this was a bad design decision; it is certainly true
that you are not the first person to have been confused. However, it is
how QMTest presently works.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark at codesourcery.com
More information about the qmtest
mailing list