aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jar
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.ch>2003-11-18 08:17:01 +0100
committerAndreas Tobler <andreast@gcc.gnu.org>2003-11-18 08:17:01 +0100
commit0ec5fef2187bc6f4f962e3afe1b2d829b7474d80 (patch)
tree3c03ed54e6c7de0766fb91507d9ee6d836f78bfb /libjava/testsuite/libjava.jar
parent217ec3ae923010d33e00cf6de3c3550c714bf644 (diff)
downloadgcc-0ec5fef2187bc6f4f962e3afe1b2d829b7474d80.zip
gcc-0ec5fef2187bc6f4f962e3afe1b2d829b7474d80.tar.gz
gcc-0ec5fef2187bc6f4f962e3afe1b2d829b7474d80.tar.bz2
jar.exp: Cleanup files and reset CLASSPATH.
2003-11-18 Andreas Tobler <a.tobler@schweiz.ch> * libjava.jar/jar.exp: Cleanup files and reset CLASSPATH. From-SVN: r73696
Diffstat (limited to 'libjava/testsuite/libjava.jar')
-rw-r--r--libjava/testsuite/libjava.jar/jar.exp12
1 files changed, 10 insertions, 2 deletions
diff --git a/libjava/testsuite/libjava.jar/jar.exp b/libjava/testsuite/libjava.jar/jar.exp
index 70a176e..bff1fea 100644
--- a/libjava/testsuite/libjava.jar/jar.exp
+++ b/libjava/testsuite/libjava.jar/jar.exp
@@ -19,7 +19,7 @@ proc gcj_jar_compile_one {jarfile mainclass} {
proc gcj_jar_interpret {jarfile} {
global INTERPRETER srcdir
- set gij [libjava_find_gij]
+ set gij [libjava_find_gij]
# libjava_find_gij will return `gij' if it couldn't find the
# program; in this case we want to skip the test.
if {$INTERPRETER != "yes" || $gij == "gij"} {
@@ -35,7 +35,7 @@ proc gcj_jar_interpret {jarfile} {
}
proc gcj_jar_run {} {
- global srcdir subdir
+ global srcdir subdir env
foreach jar [lsort [glob -nocomplain ${srcdir}/${subdir}/*.jar]] {
set xff [file rootname $jar].xfail
set main {}
@@ -54,6 +54,14 @@ proc gcj_jar_run {} {
gcj_jar_interpret $jar
}
}
+ # When we succeed we remove all our clutter.
+ eval gcj_cleanup [glob -nocomplain -- ${main}.*] [list $main ]
+
+ # Reset CLASSPATH that we do not look into testsuite/libjava.jar for *.jar
+ # files which do not belong to the libgcj itself.
+ set env(CLASSPATH) ""
+
+ return 1
}
gcj_jar_run