diff options
author | Mark Wielaard <mark@klomp.org> | 2003-01-31 18:09:04 +0000 |
---|---|---|
committer | Mark Wielaard <mark@gcc.gnu.org> | 2003-01-31 18:09:04 +0000 |
commit | 08fcde7c431743cabdf6d50b9df6107a26372bee (patch) | |
tree | cca15b012d9e90ba48b7ef9cc1c9a2f311814018 /libjava/testsuite | |
parent | 60c7f4ef5edf29fc4d16a9d690397d0e007bd84d (diff) | |
download | gcc-08fcde7c431743cabdf6d50b9df6107a26372bee.zip gcc-08fcde7c431743cabdf6d50b9df6107a26372bee.tar.gz gcc-08fcde7c431743cabdf6d50b9df6107a26372bee.tar.bz2 |
libjava.exp (libjava_prune_warnings): Remove all unreachable bytecode warnings.
* lib/libjava.exp (libjava_prune_warnings): Remove all unreachable
bytecode warnings.
From-SVN: r62190
Diffstat (limited to 'libjava/testsuite')
-rw-r--r-- | libjava/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/testsuite/lib/libjava.exp | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 23293ea..c1edda6 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-01-31 Mark Wielaard <mark@klomp.org> + + * lib/libjava.exp (libjava_prune_warnings): Remove all unreachable + bytecode warnings. + 2003-01-28 Tom Tromey <tromey@redhat.com> * libjava.loader/TestEarlyGC.java: Added comment explaining diff --git a/libjava/testsuite/lib/libjava.exp b/libjava/testsuite/lib/libjava.exp index 9c8e664..05cf08f 100644 --- a/libjava/testsuite/lib/libjava.exp +++ b/libjava/testsuite/lib/libjava.exp @@ -18,9 +18,15 @@ proc libjava_prune_warnings {text} { set len [llength $tlist] for {set i [expr {$len - 1}]} {$i >= 2} {incr i -1} { if {[string match "*unreachable bytecode*" [lindex $tlist $i]]} { - # Delete this line and the previous two lines. - set tlist [lreplace $tlist [expr {$i - 2}] $i] - incr i -2 + # Delete this line, all other unreachable warnings and the previous + # two lines containing the method and class. + set j [expr {$i - 1}] + while {[string match "*unreachable bytecode*" [lindex $tlist $j]]} { + incr j -1 + } + incr j -1 + set tlist [lreplace $tlist $j $i] + set i $j } } return [join $tlist \n] |