harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r582800 - in /harmony/enhanced/drlvm/trunk/src/test/regression/H3382: ./ Test.j TestX.java run.test.xml
Date Mon, 08 Oct 2007 12:37:30 GMT
Author: varlax
Date: Mon Oct  8 05:37:29 2007
New Revision: 582800

URL: http://svn.apache.org/viewvc?rev=582800&view=rev
Log:
Reg-test for HARMONY-3382 [drlvm][jit][jet][EUT] 1 test from org.eclipse.jdt.core.tests.compiler.parser.TestAll
suit fails fails due to assert in JET

Added:
    harmony/enhanced/drlvm/trunk/src/test/regression/H3382/
    harmony/enhanced/drlvm/trunk/src/test/regression/H3382/Test.j   (with props)
    harmony/enhanced/drlvm/trunk/src/test/regression/H3382/TestX.java   (with props)
    harmony/enhanced/drlvm/trunk/src/test/regression/H3382/run.test.xml   (with props)

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H3382/Test.j
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H3382/Test.j?rev=582800&view=auto
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H3382/Test.j (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H3382/Test.j Mon Oct  8 05:37:29 2007
@@ -0,0 +1,45 @@
+.class public org/apache/harmony/drlvm/tests/regression/h3382/Test
+.super junit/framework/TestCase
+.method public <init>()V
+    aload_0
+    invokespecial junit/framework/TestCase/<init>()V
+    return
+.end method
+
+.method public static main([Ljava/lang/String;)V
+    .limit stack 10
+    .limit locals 10
+    new org/apache/harmony/drlvm/tests/regression/h3382/Test
+    dup
+    invokespecial org/apache/harmony/drlvm/tests/regression/h3382/Test/<init>()V
+    invokevirtual org/apache/harmony/drlvm/tests/regression/h3382/Test/test()V
+    return
+.end method
+
+.method public test()V
+   invokestatic org/apache/harmony/drlvm/tests/regression/h3382/Test/test()Ljava/lang/Object;
+   return
+.end method
+
+.method public static test()Ljava/lang/Object;
+    .limit stack 10
+    .limit locals 10
+	.catch java/lang/Exception from L1 to L2 using L2
+L0:
+	getstatic java/lang/System/out Ljava/io/PrintStream;
+    ldc "SUCCESS"
+    invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
+	aconst_null     
+	areturn
+L1:
+	astore_0        
+	goto L0
+L2:
+	astore_1        
+	getstatic java/lang/System/out Ljava/io/PrintStream;
+    ldc "SUCCESS"
+    invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
+	aload_1         
+	athrow
+	nop
+.end method

Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H3382/Test.j
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H3382/TestX.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H3382/TestX.java?rev=582800&view=auto
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H3382/TestX.java (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H3382/TestX.java Mon Oct  8 05:37:29
2007
@@ -0,0 +1,15 @@
+package org.apache.harmony.drlvm.tests.regression.h3382;
+public class TestX {
+	public static void main(String[] args) {
+		foo();
+	}  
+	static Object foo() {
+		try {
+			return null;
+		} catch(Exception e) {
+			return null;
+		} finally {
+			System.out.println("SUCCESS");
+		}
+	}
+}

Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H3382/TestX.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H3382/run.test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H3382/run.test.xml?rev=582800&view=auto
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H3382/run.test.xml (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H3382/run.test.xml Mon Oct  8 05:37:29
2007
@@ -0,0 +1,13 @@
+<project name="RUN HARMONY-3382 Regression Test">
+    <target name="run-test">
+        <run-junit-test
+            test="org.apache.harmony.drlvm.tests.regression.h3382.Test"
+            vmarg="-Xem:jet">
+        </run-junit-test>
+        <run-pjava-test
+            test="org.apache.harmony.drlvm.tests.regression.h3382.TestX"
+            vmarg="-Xem:jet">
+        </run-pjava-test>
+    </target>
+</project>
+

Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H3382/run.test.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message