summaryrefslogtreecommitdiffstats
path: root/libjava/testsuite/libjava.mauve/mauve.exp
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-17 15:48:44 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-17 15:48:44 +0000
commit991a9caee83acd332f55206e484392fc3eb64b26 (patch)
treef6eb8f0a23d651340d1dfae97afaac010e6169a8 /libjava/testsuite/libjava.mauve/mauve.exp
parent19c2de7262b9f9bf111c444de034f6569a1db3e4 (diff)
downloadppe42-gcc-991a9caee83acd332f55206e484392fc3eb64b26.tar.gz
ppe42-gcc-991a9caee83acd332f55206e484392fc3eb64b26.zip
* libjava.mauve/mauve.exp (test_mauve): Call `prune_warnings'.
(test_mauve_sim): Likewise. (test_mauve): Redirect stderr in system call. (test_mauve_sim): Likewise. * lib/libjava.exp (test_libjava_from_source): Call `prune_warnings'. (test_libjava_from_javac): Likewise. (bytecompile_file): Redirect stderr in system call. * lib/libjava.exp (libjava_find_program): New proc. (find_jvscan): Use it. (find_gcjh): New proc. * libjava.compile/compile.exp: Use "", not $options. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33959 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.mauve/mauve.exp')
-rw-r--r--libjava/testsuite/libjava.mauve/mauve.exp53
1 files changed, 35 insertions, 18 deletions
diff --git a/libjava/testsuite/libjava.mauve/mauve.exp b/libjava/testsuite/libjava.mauve/mauve.exp
index 160c2411efe..04f637a747d 100644
--- a/libjava/testsuite/libjava.mauve/mauve.exp
+++ b/libjava/testsuite/libjava.mauve/mauve.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 1998, 1999 Free Software Foundation.
+# Copyright (C) 1998, 1999, 2000 Free Software Foundation.
# Written by Tom Tromey <tromey@cygnus.com>.
# Incorporate Mauve into libjava's DejaGNU test suite framework.
@@ -90,7 +90,9 @@ proc test_mauve {} {
# before they're installed.
set env(GCJ) "$GCJ_UNDER_TEST -B$objdir/../ -I$objdir/../libgcj.zip"
- if {[catch {system "$env(MAUVEDIR)/configure --with-gcj"} msg]} then {
+ if {[catch {
+ system "$env(MAUVEDIR)/configure --with-gcj 2>@ stdout"
+ } msg]} then {
fail "Mauve configure"
verbose "configure failed with $msg"
return
@@ -105,7 +107,9 @@ proc test_mauve {} {
puts -nonewline $fd $c
close $fd
- if {[catch {system "make KEYS=libgcj classes.stamp"} msg]} then {
+ if {[catch {
+ system "make KEYS=libgcj classes.stamp 2>&1"
+ } msg]} then {
fail "Mauve build"
verbose "build failed with $msg"
return
@@ -132,7 +136,9 @@ proc test_mauve {} {
foreach base {DejaGNUTestHarness gnu/testlet/SimpleTestHarness gnu/testlet/TestHarness gnu/testlet/Testlet gnu/testlet/ResourceNotFoundException gnu/testlet/config} {
set file $base.class
set obj $base.o
- if {[target_compile [pwd]/$file $obj object $compile_args] != ""} then {
+ set x [prune_warnings \
+ [target_compile [pwd]/$file $obj object $compile_args]]
+ if {$x != ""} then {
fail "Compile $obj"
set ok 0
} else {
@@ -155,8 +161,9 @@ proc test_mauve {} {
if {! [file exists $obj]} then {
verbose "compiling $obj for test of $class"
set srcfile [file rootname $obj].class
- if {[target_compile [pwd]/$srcfile $obj object $compile_args]
- != ""} then {
+ set x [prune_warnings \
+ [target_compile [pwd]/$srcfile $obj object $compile_args]]
+ if {$x != ""} then {
fail "Compile $obj for $class"
set ok 0
break
@@ -168,8 +175,9 @@ proc test_mauve {} {
continue
}
- if {[target_compile [concat $uses($file) $objlist] \
- $Executable executable $link_args] != ""} then {
+ set x [prune_warnings [target_compile [concat $uses($file) $objlist] \
+ $Executable executable $link_args]]
+ if {$x != ""} then {
fail "Link for $class"
continue
}
@@ -223,7 +231,9 @@ proc test_mauve_sim {} {
set full_srcdir [pwd]
cd $here/mauve-build
- if {[catch {system "$env(MAUVEDIR)/configure --with-gcj"} msg]} then {
+ if {[catch {
+ system "$env(MAUVEDIR)/configure --with-gcj 2>&1"
+ } msg]} then {
fail "Mauve configure"
verbose "configure failed with $msg"
return
@@ -238,7 +248,9 @@ proc test_mauve_sim {} {
puts -nonewline $fd $c
close $fd
- if {[catch {system "make KEYS=libgcj classes.stamp"} msg]} then {
+ if {[catch {
+ system "make KEYS=libgcj classes.stamp 2>&1"
+ } msg]} then {
fail "Mauve build"
verbose "build failed with $msg"
return
@@ -260,7 +272,9 @@ proc test_mauve_sim {} {
gnu/testlet/config} {
set file $base.class
set obj $base.o
- if {[target_compile [pwd]/$file $obj object $compile_args] != ""} then {
+ set x [prune_warnings \
+ [target_compile [pwd]/$file $obj object $compile_args]]
+ if {$x != ""} then {
fail "Compile $obj"
set ok 0
} else {
@@ -286,8 +300,9 @@ proc test_mauve_sim {} {
if {! [file exists $obj]} then {
verbose "compiling $obj for test of $class"
set srcfile [file rootname $obj].class
- if {[target_compile [pwd]/$srcfile $obj object $compile_args]
- != ""} then {
+ set x [prune_warnings \
+ [target_compile [pwd]/$srcfile $obj object $compile_args]]
+ if {$x != ""} then {
fail "Compile $obj for $class"
set ok 0
break
@@ -320,15 +335,17 @@ proc test_mauve_sim {} {
return
}
- if {[target_compile gnu/testlet/DejaGNUTestHarness.class \
- gnu/testlet/DejaGNUTestHarness.o object $compile_args]
- != ""} then {
+ set x [prune_warnings \
+ [target_compile gnu/testlet/DejaGNUTestHarness.class \
+ gnu/testlet/DejaGNUTestHarness.o object $compile_args]]
+ if {$x != ""} then {
fail "Compile DejaGNUTestHarness.java"
continue
}
- if {[target_compile [concat $uses($file) $objlist] \
- $Executable executable $link_args] != ""} then {
+ set x [prune_warnings [target_compile [concat $uses($file) $objlist] \
+ $Executable executable $link_args]]
+ if {$x != ""} then {
fail "Link for $class"
continue
}
OpenPOWER on IntegriCloud