Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 12014 invoked from network); 19 Apr 2009 21:52:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Apr 2009 21:52:38 -0000 Received: (qmail 44883 invoked by uid 500); 19 Apr 2009 21:52:38 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 44827 invoked by uid 500); 19 Apr 2009 21:52:38 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 44818 invoked by uid 99); 19 Apr 2009 21:52:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Apr 2009 21:52:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Apr 2009 21:52:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C7B942388A69; Sun, 19 Apr 2009 21:52:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r766525 - in /harmony/enhanced/drlvm/trunk/src/test/regression: H2141/ H2141/AbcdTest.java H2141/run.test.xml H2144/ H2144/Abcd2Test.java H2144/run.test.xml H2147/ H2147/Abcd1Test.java H2147/LowBoundCheckTest.java H2147/run.test.xml README.txt Date: Sun, 19 Apr 2009 21:52:14 -0000 To: commits@harmony.apache.org From: egor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090419215214.C7B942388A69@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: egor Date: Sun Apr 19 21:52:13 2009 New Revision: 766525 URL: http://svn.apache.org/viewvc?rev=766525&view=rev Log: Added reg tests from HARMONY-2141, HARMONY-2144, HARMONY-2147 updated README for regression tests Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2141/ harmony/enhanced/drlvm/trunk/src/test/regression/H2141/AbcdTest.java (with props) harmony/enhanced/drlvm/trunk/src/test/regression/H2141/run.test.xml (with props) harmony/enhanced/drlvm/trunk/src/test/regression/H2144/ harmony/enhanced/drlvm/trunk/src/test/regression/H2144/Abcd2Test.java (with props) harmony/enhanced/drlvm/trunk/src/test/regression/H2144/run.test.xml (with props) harmony/enhanced/drlvm/trunk/src/test/regression/H2147/ harmony/enhanced/drlvm/trunk/src/test/regression/H2147/Abcd1Test.java (with props) harmony/enhanced/drlvm/trunk/src/test/regression/H2147/LowBoundCheckTest.java (with props) harmony/enhanced/drlvm/trunk/src/test/regression/H2147/run.test.xml (with props) Modified: harmony/enhanced/drlvm/trunk/src/test/regression/README.txt Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2141/AbcdTest.java URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2141/AbcdTest.java?rev=766525&view=auto ============================================================================== --- harmony/enhanced/drlvm/trunk/src/test/regression/H2141/AbcdTest.java (added) +++ harmony/enhanced/drlvm/trunk/src/test/regression/H2141/AbcdTest.java Sun Apr 19 21:52:13 2009 @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.harmony.drlvm.tests.regression.h2141; + +import junit.framework.TestCase; + +public class AbcdTest extends TestCase { + + public void test() { + int i = 0; + int arr[] = new int[300000]; + try { + for(i=0; i<100000; i++) { + while(i<3) { + arr[i-1] = 1; + i++; + } + } + fail("ArrayIndexOutOfBoundsException wasn't thrown"); + } catch (ArrayIndexOutOfBoundsException e) { + System.out.println("TEST 1 PASSED"); + } + + i = 0; + try { + for(i=0; i<100000; i++) { + if (i>5) { + arr[i-100] = 1; + i++; + } + } + fail("ArrayIndexOutOfBoundsException wasn't thrown"); + } catch (ArrayIndexOutOfBoundsException e) { + System.out.println("TEST 2 PASSED"); + } + } +} Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H2141/AbcdTest.java ------------------------------------------------------------------------------ svn:eol-style = native Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2141/run.test.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2141/run.test.xml?rev=766525&view=auto ============================================================================== --- harmony/enhanced/drlvm/trunk/src/test/regression/H2141/run.test.xml (added) +++ harmony/enhanced/drlvm/trunk/src/test/regression/H2141/run.test.xml Sun Apr 19 21:52:13 2009 @@ -0,0 +1,25 @@ + + + + + + + + + Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H2141/run.test.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2144/Abcd2Test.java URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2144/Abcd2Test.java?rev=766525&view=auto ============================================================================== --- harmony/enhanced/drlvm/trunk/src/test/regression/H2144/Abcd2Test.java (added) +++ harmony/enhanced/drlvm/trunk/src/test/regression/H2144/Abcd2Test.java Sun Apr 19 21:52:13 2009 @@ -0,0 +1,45 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.harmony.drlvm.tests.regression.h2144; + +import junit.framework.TestCase; + +public class Abcd2Test extends TestCase { + + private final int limit = 10000; + + public void test() { + int arr[] = new int[limit]; + int j=1; + try { + for(int k=2; k + + + + + + + + Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H2144/run.test.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2147/Abcd1Test.java URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2147/Abcd1Test.java?rev=766525&view=auto ============================================================================== --- harmony/enhanced/drlvm/trunk/src/test/regression/H2147/Abcd1Test.java (added) +++ harmony/enhanced/drlvm/trunk/src/test/regression/H2147/Abcd1Test.java Sun Apr 19 21:52:13 2009 @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.harmony.drlvm.tests.regression.h2147; + +import junit.framework.TestCase; + +public class Abcd1Test extends TestCase { + + private final int limit = 1000; + + public void test() { + int arr[] = new int[limit]; + try { + for(int k=1; k 0; j--) { + System.out.println("Call arr[" + (j-3) + "]"); + num = arr[j-3]; + } + fail("TEST FAILED: ArrayIndexOutOfBoundsException wasn't thrown"); + } catch (ArrayIndexOutOfBoundsException ae) { + System.out.println("TEST PASSED"); + } + } +} Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H2147/LowBoundCheckTest.java ------------------------------------------------------------------------------ svn:eol-style = native Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2147/run.test.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2147/run.test.xml?rev=766525&view=auto ============================================================================== --- harmony/enhanced/drlvm/trunk/src/test/regression/H2147/run.test.xml (added) +++ harmony/enhanced/drlvm/trunk/src/test/regression/H2147/run.test.xml Sun Apr 19 21:52:13 2009 @@ -0,0 +1,29 @@ + + + + + + + + + + + Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H2147/run.test.xml ------------------------------------------------------------------------------ svn:eol-style = native Modified: harmony/enhanced/drlvm/trunk/src/test/regression/README.txt URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/README.txt?rev=766525&r1=766524&r2=766525&view=diff ============================================================================== --- harmony/enhanced/drlvm/trunk/src/test/regression/README.txt (original) +++ harmony/enhanced/drlvm/trunk/src/test/regression/README.txt Sun Apr 19 21:52:13 2009 @@ -108,9 +108,9 @@ -------------- To execute the Regression Test Suite type - > build reg.test + > ant reg.test -in build directory of DRLVM workspace. This will execute all non-excluded +in top level directory of DRLVM workspace. This will execute all non-excluded regression tests for your platform configuration. Also by providing the value for 'test.case' property you can choose @@ -118,12 +118,12 @@ For example, to run only H1234 regression test type the following on your command line: - > build -Dtest.case=H1234 reg.test + > ant -Dtest.case=H1234 reg.test To check for several regressions use coma or space separated list as a value for the property. So the following command: - > build -Dtest.case="H1234,H4321" reg.test + > ant -Dtest.case="H1234,H4321" reg.test will execute two regression tests - H1234 and H4321.