aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/libjava/testsuite/libjava.jar
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-06-17 11:09:54 -0700
committerDan Albert <danalbert@google.com>2015-06-17 14:15:22 -0700
commitf378ebf14df0952eae870c9865bab8326aa8f137 (patch)
tree31794503eb2a8c64ea5f313b93100f1163afcffb /gcc-4.7/libjava/testsuite/libjava.jar
parent2c58169824949d3a597d9fa81931e001ef9b1bd0 (diff)
downloadtoolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.tar.gz
toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.tar.bz2
toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.zip
Delete old versions of GCC.
Change-Id: I710f125d905290e1024cbd67f48299861790c66c
Diffstat (limited to 'gcc-4.7/libjava/testsuite/libjava.jar')
-rw-r--r--gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.jarbin3997 -> 0 bytes
-rw-r--r--gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.java116
-rw-r--r--gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.out1
-rw-r--r--gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.xfail1
-rw-r--r--gcc-4.7/libjava/testsuite/libjava.jar/jar.exp68
-rw-r--r--gcc-4.7/libjava/testsuite/libjava.jar/simple.jarbin666 -> 0 bytes
-rw-r--r--gcc-4.7/libjava/testsuite/libjava.jar/simple.java7
-rw-r--r--gcc-4.7/libjava/testsuite/libjava.jar/simple.out1
-rw-r--r--gcc-4.7/libjava/testsuite/libjava.jar/simple.xfail1
9 files changed, 0 insertions, 195 deletions
diff --git a/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.jar b/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.jar
deleted file mode 100644
index 60d948ad5..000000000
--- a/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.jar
+++ /dev/null
Binary files differ
diff --git a/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.java b/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.java
deleted file mode 100644
index 69a325a99..000000000
--- a/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/* Verify that libffi closures aren't deallocated too early.
-
- Copyright (C) 2007 Free Software Foundation, Inc
- Contributed by Alexandre Oliva <aoliva@redhat.com>
-
- If libffi closures are released too early, we lose.
- */
-
-import java.util.HashSet;
-
-public class TestClosureGC {
- public static String objId (Object obj) {
- return obj + "/"
- + Integer.toHexString(obj.getClass().getClassLoader().hashCode());
- }
- public static class cld extends java.net.URLClassLoader {
- static final Object obj = new cl0();
- public cld () throws Exception {
- super(new java.net.URL[] { });
- /* System.out.println (objId (this) + " created"); */
- }
- public void finalize () {
- /* System.out.println (objId (this) + " finalized"); */
- }
- public String toString () {
- return this.getClass().getName() + "@"
- + Integer.toHexString (hashCode ());
- }
- public Class loadClass (String name) throws ClassNotFoundException {
- try {
- java.io.InputStream IS = getSystemResourceAsStream
- (name + ".class");
- int maxsz = 1024, readsz = 0;
- byte buf[] = new byte[maxsz];
- for(;;) {
- int readnow = IS.read (buf, readsz, maxsz - readsz);
- if (readnow <= 0)
- break;
- readsz += readnow;
- if (readsz == maxsz) {
- byte newbuf[] = new byte[maxsz *= 2];
- System.arraycopy (buf, 0, newbuf, 0, readsz);
- buf = newbuf;
- }
- }
- return defineClass (name, buf, 0, readsz);
- } catch (Exception e) {
- return super.loadClass (name);
- }
- }
- }
- public static class cl0 {
- public cl0 () {
- /* System.out.println (objId (this) + " created"); */
- }
- public void finalize () {
- /* System.out.println (objId (this) + " finalized"); */
- }
- }
- public static class cl1 {
- final HashSet hs;
- static final Object obj = new cl0();
- public cl1 (final HashSet hs) {
- this.hs = hs;
- /* System.out.println (objId (this) + " created"); */
- }
- public void finalize () {
- /* System.out.println (objId (this) + " finalized"); */
- }
- }
- public static class cl2 {
- final HashSet hs;
- static final Object obj = new cl0();
- public cl2 (final HashSet hs) {
- this.hs = hs;
- /* System.out.println (objId (this) + " created"); */
- }
- public void finalize () {
- /* System.out.println (objId (this) + " finalized"); */
- hs.add(this);
- hs.add(new cl0());
- }
- }
- static final HashSet hs = new HashSet();
- static final Object obj = new cl0();
- public static void main(String[] argv) throws Exception {
- {
- Class[] hscs = { HashSet.class };
- Object[] hsos = { hs };
- new cld().loadClass ("TestClosureGC$cl1").
- getConstructor (hscs).newInstance (hsos);
- new cld().loadClass ("TestClosureGC$cl2").
- getConstructor (hscs).newInstance (hsos);
- new cld().loadClass ("TestClosureGC$cl1").
- getConstructor (hscs).newInstance (hsos);
- new cld().loadClass ("TestClosureGC$cl1").
- getConstructor (hscs).newInstance (hsos);
- }
- for (int i = 1; i <= 5; i++) {
- /* System.out.println ("Will run GC and finalization " + i); */
- System.gc ();
- Thread.sleep (100);
- System.runFinalization ();
- Thread.sleep (100);
- if (hs.isEmpty ())
- continue;
- java.util.Iterator it = hs.iterator ();
- while (it.hasNext ()) {
- Object obj = it.next();
- /* System.out.println (objId (obj) + " in ht, removing"); */
- it.remove ();
- }
- }
- System.out.println ("ok");
- }
-}
diff --git a/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.out b/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.out
deleted file mode 100644
index 9766475a4..000000000
--- a/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.out
+++ /dev/null
@@ -1 +0,0 @@
-ok
diff --git a/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.xfail b/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.xfail
deleted file mode 100644
index 963b35a7c..000000000
--- a/gcc-4.7/libjava/testsuite/libjava.jar/TestClosureGC.xfail
+++ /dev/null
@@ -1 +0,0 @@
-main=TestClosureGC
diff --git a/gcc-4.7/libjava/testsuite/libjava.jar/jar.exp b/gcc-4.7/libjava/testsuite/libjava.jar/jar.exp
deleted file mode 100644
index e57bcb3e5..000000000
--- a/gcc-4.7/libjava/testsuite/libjava.jar/jar.exp
+++ /dev/null
@@ -1,68 +0,0 @@
-# Tests for .jar files.
-
-# Compile a single .jar file to an executable.
-# Returns 0 on failure.
-proc gcj_jar_link {jarfile mainclass} {
-}
-
-proc gcj_jar_compile_one {jarfile mainclass} {
- set base [file rootname [file tail $jarfile]]
- set out [file rootname $jarfile].out
-
- if {! [gcj_link $base $mainclass [list $jarfile]]} {
- return
- }
-
- gcj_invoke $base $out {}
-}
-
-proc gcj_jar_interpret {jarfile} {
- global INTERPRETER srcdir
-
- set gij [libjava_find_gij]
- set errname [dg-trim-dirname $srcdir $jarfile]
- # libjava_find_gij will return "" if it couldn't find the
- # program; in this case we want to skip the test.
- if {$INTERPRETER != "yes" || $gij == ""} {
- untested "$errname execution - gij test"
- untested "$errname output - gij test"
- return
- }
-
- set opts(_) {}
- set out [file rootname $jarfile].out
- libjava_invoke $errname "gij test" opts $gij {} $out \
- "" -jar $jarfile
-}
-
-proc gcj_jar_run {} {
- global srcdir subdir env
- foreach jar [lsort [glob -nocomplain ${srcdir}/${subdir}/*.jar]] {
- set xff [file rootname $jar].xfail
- set main {}
- set interp 1
- foreach item [libjava_read_xfail $xff] {
- if {[string match main=* $item]} {
- set main [string range $item 5 end]
- break
- } elseif {$item == "no-interpret"} {
- set interp 0
- }
- }
-
- gcj_jar_compile_one $jar $main
- if {$interp} {
- 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
diff --git a/gcc-4.7/libjava/testsuite/libjava.jar/simple.jar b/gcc-4.7/libjava/testsuite/libjava.jar/simple.jar
deleted file mode 100644
index a3359b298..000000000
--- a/gcc-4.7/libjava/testsuite/libjava.jar/simple.jar
+++ /dev/null
Binary files differ
diff --git a/gcc-4.7/libjava/testsuite/libjava.jar/simple.java b/gcc-4.7/libjava/testsuite/libjava.jar/simple.java
deleted file mode 100644
index 848ebe126..000000000
--- a/gcc-4.7/libjava/testsuite/libjava.jar/simple.java
+++ /dev/null
@@ -1,7 +0,0 @@
-public class simple
-{
- public static void main(String[] args)
- {
- System.out.println("hi");
- }
-}
diff --git a/gcc-4.7/libjava/testsuite/libjava.jar/simple.out b/gcc-4.7/libjava/testsuite/libjava.jar/simple.out
deleted file mode 100644
index 45b983be3..000000000
--- a/gcc-4.7/libjava/testsuite/libjava.jar/simple.out
+++ /dev/null
@@ -1 +0,0 @@
-hi
diff --git a/gcc-4.7/libjava/testsuite/libjava.jar/simple.xfail b/gcc-4.7/libjava/testsuite/libjava.jar/simple.xfail
deleted file mode 100644
index 478dfc794..000000000
--- a/gcc-4.7/libjava/testsuite/libjava.jar/simple.xfail
+++ /dev/null
@@ -1 +0,0 @@
-main=simple