[prev in list] [next in list] [prev in thread] [next in thread]
List: gdb-patches
Subject: testsuite & missing languages
From: nathan () codesourcery ! com (Nathan Sidwell)
Date: 2006-11-30 15:05:00
Message-ID: 456EF332.5070804 () codesourcery ! com
[Download RAW message or body]
This patch is the first of a sequence to cleanup the testsuite's processing of
compilation errors. currently, for languages like ada, java & fortran, we skip
any test where the compilation fails. We don't distinguish between 'no
compiler' and 'compilation errors'. Sometimes we'll silently skip, other times
we'll generate 'untested'.
This patch adds gdb_compile_test, which parses the compiler output and
determines whether the compiler is missing (unsupported), the compiler produced
errors (fail) or the compilation succeeded (pass). I've modifed the ada, java &
fortran tests to expect this behaviour. ada and java have their own compile
procedures, which are modified to call gdb_compile_test. fortran uses
gdb_compile, and I've added a test at the end of that, when the language is
fortran, to use gdb_compile_test. As you can see, the intent is to change the C
and C++ tests to do this too. Note that the existing 'quiet' flag suppresses
this testing, and that means one will have to use it to capture preprocessor
output (or we could just check the action is 'preprocess').
This also adds skip_FOO_tests for fortran, java & ada, similar to the current
skip_cplus_tests.
tested on i686-pc-linux-gnu, ok?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: all.diff
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20061130/0c7f2f6b/attachment.ksh>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic