[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Test failure halts make with an error

From: Braden McDaniel
Subject: Test failure halts make with an error
Date: Sun, 29 Feb 2004 22:24:47 -0500

Is it "normal" for a test failure in a directory to halt make with an
error? Certainly I could use "make -k" to keep going; but this behavior
is not what I would have expected. My test loop looks like this:

        proc run_parse_tests { worlds } {
            foreach world $worlds {
                set test $world
                if [catch { parse_start $world }] {
                    fail "$test"
                } else {
                    pass "$test"

... and parse_start looks like this:

        proc parse_start { world } {
            global tool
            exec ../$tool < $world

The behavior of the tool (parse) is to return nonzero if it encounters
bad input.

Should a tool started in ${tool}_start not return nonzero to signify
test failure (as opposed to an unexpected error)? Is there some other
way I should be running the tool? Or is it my expectations that need

Braden McDaniel                           e-mail: <address@hidden>
<>                    Jabber: <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]