harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r575649 - in /harmony/enhanced/drlvm/trunk/src/test/regression/H4675: ./ DivLongTest.java run.test.xml
Date Fri, 14 Sep 2007 12:04:10 GMT
Author: varlax
Date: Fri Sep 14 05:04:09 2007
New Revision: 575649

URL: http://svn.apache.org/viewvc?rev=575649&view=rev
Log:
Reg test to HARMONY-4675

Added:
    harmony/enhanced/drlvm/trunk/src/test/regression/H4675/
    harmony/enhanced/drlvm/trunk/src/test/regression/H4675/DivLongTest.java
    harmony/enhanced/drlvm/trunk/src/test/regression/H4675/run.test.xml

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H4675/DivLongTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H4675/DivLongTest.java?rev=575649&view=auto
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H4675/DivLongTest.java (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H4675/DivLongTest.java Fri Sep 14 05:04:09
2007
@@ -0,0 +1,30 @@
+package org.apache.harmony.drlvm.tests.regression.h4675;
+
+import junit.framework.TestCase;
+
+public class DivLongTest extends TestCase {
+
+    public void testLDIV_lowzero() {
+        long test_long = 0x000000ff00000000L; 
+        long res = test_long / test_long; 
+
+        assertEquals(1, res);
+    }
+
+    /*  crash on x86_64 - to be fixed
+    public void testLDIV_min() {
+        long l_min = Long.MIN_VALUE;
+        long l_1 = -1;
+        long res = l_min / l_1;
+
+        assertEquals(Long.MIN_VALUE, res);
+    }
+
+    public void testLREM_min() {
+        long l_min = Long.MIN_VALUE;
+        long l_1 = -1;
+        long res = l_min % l_1;
+
+        assertEquals(0, res);
+    } */
+}

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H4675/run.test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H4675/run.test.xml?rev=575649&view=auto
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H4675/run.test.xml (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H4675/run.test.xml Fri Sep 14 05:04:09
2007
@@ -0,0 +1,9 @@
+<project name="RUN HARMONY-4675 Regression Test">
+    <target name="run-test">
+        <run-junit-test 
+             test="org.apache.harmony.drlvm.tests.regression.h4675.DivLongTest"
+             vmarg="-Xem:jet">
+        </run-junit-test>
+    </target>
+</project>
+



Mime
View raw message