harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r509557 - in /harmony/enhanced/drlvm/trunk/src/test/regression: H1802/ H1802/UnresolvedHandlerTest.java H1802/UnresolvedParamTest.java H1802/run.test.xml H1857/ H1857/Test.java H1857/run.test.xml H2873/ H2873/RemTest.java H2873/run.test.xml
Date Tue, 20 Feb 2007 13:51:19 GMT
Author: varlax
Date: Tue Feb 20 05:51:19 2007
New Revision: 509557

URL: http://svn.apache.org/viewvc?view=rev&rev=509557
Log:
Few regression tests added for closed issues.
Tested on SLES10@ia32

Added:
    harmony/enhanced/drlvm/trunk/src/test/regression/H1802/
    harmony/enhanced/drlvm/trunk/src/test/regression/H1802/UnresolvedHandlerTest.java
    harmony/enhanced/drlvm/trunk/src/test/regression/H1802/UnresolvedParamTest.java
    harmony/enhanced/drlvm/trunk/src/test/regression/H1802/run.test.xml
    harmony/enhanced/drlvm/trunk/src/test/regression/H1857/
    harmony/enhanced/drlvm/trunk/src/test/regression/H1857/Test.java
    harmony/enhanced/drlvm/trunk/src/test/regression/H1857/run.test.xml
    harmony/enhanced/drlvm/trunk/src/test/regression/H2873/
    harmony/enhanced/drlvm/trunk/src/test/regression/H2873/RemTest.java
    harmony/enhanced/drlvm/trunk/src/test/regression/H2873/run.test.xml

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H1802/UnresolvedHandlerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H1802/UnresolvedHandlerTest.java?view=auto&rev=509557
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H1802/UnresolvedHandlerTest.java (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H1802/UnresolvedHandlerTest.java Tue
Feb 20 05:51:19 2007
@@ -0,0 +1,29 @@
+package org.apache.harmony.drlvm.tests.regression.h1802;
+
+import junit.framework.TestCase;
+
+public class UnresolvedHandlerTest extends TestCase {
+
+    public void test() throws Exception {
+       try {
+           X x = new X();
+           x.foo(false);
+           fail();
+       } catch (NoClassDefFoundError ok) {}
+    }
+
+    static class X {
+
+    public void foo(boolean a) {
+        try {
+            if (a) {
+                throw new MissedThrowable();
+            }
+        } catch (MissedThrowable e) {
+            System.out.println(e.getMessage());
+        }
+    }
+    }
+}
+
+class MissedThrowable extends Throwable {}

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H1802/UnresolvedParamTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H1802/UnresolvedParamTest.java?view=auto&rev=509557
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H1802/UnresolvedParamTest.java (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H1802/UnresolvedParamTest.java Tue Feb
20 05:51:19 2007
@@ -0,0 +1,20 @@
+package org.apache.harmony.drlvm.tests.regression.h1802;
+
+import junit.framework.TestCase;
+
+public class UnresolvedParamTest extends TestCase {
+
+    public void test() throws Exception {
+       try {
+           X.foo(null);
+       } catch (NoClassDefFoundError ok) {}
+    }
+    static class X {
+       static void foo(Missed m){
+           System.out.println(m);
+       }
+    }
+}
+
+class Missed {
+}

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H1802/run.test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H1802/run.test.xml?view=auto&rev=509557
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H1802/run.test.xml (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H1802/run.test.xml Tue Feb 20 05:51:19
2007
@@ -0,0 +1,19 @@
+<project name="RUN HARMONY-1802 Regression Test">
+    <target name="run-test">
+        <delete
+             file="${reg.test.class.path}/org/apache/harmony/drlvm/tests/regression/h1802/Missed.class"
+             verbose="true"/>
+        <run-junit-test 
+             test="org.apache.harmony.drlvm.tests.regression.h1802.UnresolvedParamTest"
+             vmarg="-Xem:opt">
+        </run-junit-test>
+        <delete
+             file="${reg.test.class.path}/org/apache/harmony/drlvm/tests/regression/h1802/MissedThrowable.class"
+             verbose="true"/>
+        <run-junit-test 
+             test="org.apache.harmony.drlvm.tests.regression.h1802.UnresolvedHandlerTest"
+             vmarg="-Xem:opt -Xverify:none">
+        </run-junit-test>
+    </target>
+</project>
+

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H1857/Test.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H1857/Test.java?view=auto&rev=509557
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H1857/Test.java (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H1857/Test.java Tue Feb 20 05:51:19 2007
@@ -0,0 +1,25 @@
+package org.apache.harmony.drlvm.tests.regression.h1857;
+
+import junit.framework.TestCase;
+
+public class Test extends TestCase {
+
+    public void test() throws Exception {
+       try {
+            new TestClass();
+            fail("NoClassDefFoundError expected. Misconfiguration?");
+        } catch (NoClassDefFoundError ok) {}
+    }
+}
+
+class MissedThrowable extends Throwable {}
+
+class TestClass {
+    public void run() throws MissedThrowable {}
+
+    public void tryMe() {
+        try {
+            run();
+        } catch (MissedThrowable e) {}
+    }
+}

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H1857/run.test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H1857/run.test.xml?view=auto&rev=509557
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H1857/run.test.xml (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H1857/run.test.xml Tue Feb 20 05:51:19
2007
@@ -0,0 +1,12 @@
+<project name="RUN HARMONY-1857 Regression Test">
+    <target name="run-test">
+        <delete
+             file="${reg.test.class.path}/org/apache/harmony/drlvm/tests/regression/h1857/MissedThrowable.class"
+             verbose="true"/>
+        <run-junit-test 
+             test="org.apache.harmony.drlvm.tests.regression.h1857.Test"
+             vmarg="-Xem:opt">
+        </run-junit-test>
+    </target>
+</project>
+

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2873/RemTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2873/RemTest.java?view=auto&rev=509557
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H2873/RemTest.java (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H2873/RemTest.java Tue Feb 20 05:51:19
2007
@@ -0,0 +1,20 @@
+package org.apache.harmony.drlvm.tests.regression.H2873;
+
+import junit.framework.TestCase;
+
+public class RemTest extends TestCase {
+    
+    public void testDcmp() throws Exception {
+        double d1 = 3.3d;
+        double d2 = Double.MIN_VALUE;
+        double dd = d1 % d2;
+        assertEquals(0.0d, dd);
+    }
+    
+    public void testFrem() throws Exception {
+        float f1 = 5.5f;
+        float f2 = Float.MIN_VALUE;
+        float ff = f1 % f2;
+        assertEquals(0.0f, ff);
+    }    
+}
\ No newline at end of file

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2873/run.test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2873/run.test.xml?view=auto&rev=509557
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H2873/run.test.xml (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H2873/run.test.xml Tue Feb 20 05:51:19
2007
@@ -0,0 +1,9 @@
+<project name="RUN HARMONY-2873 Regression Test">
+    <target name="run-test">
+        <run-junit-test 
+            test="org.apache.harmony.drlvm.tests.regression.H2873.RemTest"
+            vmarg="-Xem:opt">
+        </run-junit-test>
+    </target>
+</project>
+



Mime
View raw message