bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] tests init: new subroutine 'fatal_', for hard errors


From: Eric Blake
Subject: Re: [PATCH] tests init: new subroutine 'fatal_', for hard errors
Date: Tue, 07 Jun 2011 06:13:32 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 06/07/2011 05:58 AM, Stefano Lattarini wrote:
> Before this patch, the only way offered by tests/init.sh to
> properly signal an hard error was the `framework_failure_'

> +++ b/tests/init.sh
> @@ -77,6 +77,7 @@ Exit () { set +e; (exit $1); exit $1; }
>  warn_ () { echo "$@" 1>&$stderr_fileno_; }
>  fail_ () { warn_ "$ME_: failed test: $@"; Exit 1; }
>  skip_ () { warn_ "$ME_: skipped test: $@"; Exit 77; }
> +fatal_ () { warn_ "$ME_: hard error: $@"; Exit 99; }
>  framework_failure_ () { warn_ "$ME_: set-up failure: $@"; Exit 99; }

Simple enough, and makes sense.  ACK.

I was about to suggest rewriting framework_failure_ in terms of fatal_,
but that won't work ("hard error" and "set-up failure" should remain
distinct messages).

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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