aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.special
diff options
context:
space:
mode:
authorTom Tromey <tromey@gcc.gnu.org>2007-01-09 19:58:05 +0000
committerTom Tromey <tromey@gcc.gnu.org>2007-01-09 19:58:05 +0000
commit97b8365cafc3a344a22d3980b8ed885f5c6d8357 (patch)
tree996a5f57d4a68c53473382e45cb22f574cb3e4db /libjava/testsuite/libjava.special
parentc648dedbde727ca3f883bb5fd773aa4af70d3369 (diff)
downloadgcc-97b8365cafc3a344a22d3980b8ed885f5c6d8357.zip
gcc-97b8365cafc3a344a22d3980b8ed885f5c6d8357.tar.gz
gcc-97b8365cafc3a344a22d3980b8ed885f5c6d8357.tar.bz2
Merged gcj-eclipse branch to trunk.
From-SVN: r120621
Diffstat (limited to 'libjava/testsuite/libjava.special')
-rw-r--r--libjava/testsuite/libjava.special/special.exp14
1 files changed, 12 insertions, 2 deletions
diff --git a/libjava/testsuite/libjava.special/special.exp b/libjava/testsuite/libjava.special/special.exp
index ab18b47..8397f85 100644
--- a/libjava/testsuite/libjava.special/special.exp
+++ b/libjava/testsuite/libjava.special/special.exp
@@ -1,5 +1,10 @@
# Special test cases. These require tricky build procedures.
+proc gcj_special_try_compiler {} {
+ global srcdir subdir
+ return [bytecompile_file ${srcdir}/${subdir}/pr21115I.java [pwd]]
+}
+
proc gcj_special_pr21115 {} {
global srcdir subdir env
@@ -94,5 +99,10 @@ proc gcj_special_lazy_illegal_access {} {
return 1
}
-gcj_special_pr21115
-gcj_special_lazy_illegal_access
+# For these tests it is simpler to require that gcj work. So we try
+# the compiler and if it fails, we simply skip the tests.
+
+if {[gcj_special_try_compiler]} {
+ gcj_special_pr21115
+ gcj_special_lazy_illegal_access
+}