dejagnu
[Top][All Lists]
Advanced

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

[DejaGnu] handling of errors in tests scripts


From: Martin Muenstermann
Subject: [DejaGnu] handling of errors in tests scripts
Date: Tue, 08 May 2001 17:18:53 +0200

Hello!

I think it's great that dejagnu now finally has a new release, thanks!

We use dejagnu for both unit and system testing. Each build should be
done by 
configure && make && make check && make install.  
This must be done in different directories to build several libraries
and is done by batch jobs. 

We found it difficult to create bullet proof test scripts, i.e. in
certain (error) conditions the scripts generate a Tcl error (invalid
spawn_id etc.pp.). Unfortunately in these cases "make check" generates
no error state, so the batch build is continued in spite of the error
during "make check".

IMHO it would be nicer if dejagnu returned an error exit state in these
cases. This could be done quiet simple by adding the lines
################
    global exit_status
    set exit_status 1
################
to file runtest.exp in the catch block of 
catch "uplevel #0 source $test_file_name"
(line 1433 in V1.4.1).


Martin

-- 
Dr. Martin M├╝nstermann       Tel.: +49 (0)40 / 80 80 26-314
TC TrustCenter GmbH          Fax.: +49 (0)40 / 80 80 26-126
Sonninstra├če 24 - 28         mailto:address@hidden
D-20097 Hamburg              http://www.trustcenter.de



reply via email to

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