harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r948377 [21/21] - in /harmony/enhanced/java/branches/mrh: classlib/make/ classlib/modules/accessibility/make/ classlib/modules/annotation/make/ classlib/modules/applet/make/ classlib/modules/archive/make/ classlib/modules/archive/src/test/j...
Date Wed, 26 May 2010 09:31:15 GMT
Modified: harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java Wed May 26 09:31:07 2010
@@ -33,11 +33,16 @@ import java.util.Locale;
 import junit.framework.TestCase;
 
 import org.apache.harmony.testframework.serialization.SerializationTest;
+import tests.support.Support_Excludes;
 
 
 public class DecimalFormatTest extends TestCase {
 
     public void testAttributedCharacterIterator() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Regression for http://issues.apache.org/jira/browse/HARMONY-333
         AttributedCharacterIterator iterator = new DecimalFormat().formatToCharacterIterator(new Integer(1));
         assertNotNull(iterator);
@@ -50,6 +55,10 @@ public class DecimalFormatTest extends T
      */
     public void test_isParseBigDecimalLjava_lang_Boolean_isParseIntegerOnlyLjava_lang_Boolean() {
 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // parseBigDecimal default to false
         DecimalFormat form = (DecimalFormat) DecimalFormat.getInstance(Locale.US);
         assertFalse(form.isParseBigDecimal());
@@ -65,6 +74,10 @@ public class DecimalFormatTest extends T
     // Test the type of the returned object
 
     public void test_parseLjava_lang_String_Ljava_text_ParsePosition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat form = (DecimalFormat) DecimalFormat.getInstance(Locale.US);
         Number number = form.parse("23.1", new ParsePosition(0));
         assertTrue(number instanceof Double);
@@ -332,6 +345,10 @@ public class DecimalFormatTest extends T
     }
 
     public void test_getMaximumFractionDigits() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
 
@@ -356,6 +373,10 @@ public class DecimalFormatTest extends T
     }
 
     public void test_getMinimumFractionDigits() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
 
@@ -377,6 +398,10 @@ public class DecimalFormatTest extends T
 
     //FIXME This test fails on Harmony ClassLibrary
     public void test_getMaximumIntegerDigits() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         final int maxIntDigit = 309;
 
         // When use default locale, in this case zh_CN
@@ -425,6 +450,10 @@ public class DecimalFormatTest extends T
     }
 
     public void test_getMinimumIntegerDigits() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         final int minIntDigit = 1;
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
@@ -447,6 +476,10 @@ public class DecimalFormatTest extends T
     }
 
     public void test_formatLjava_lang_Obj_Ljava_StringBuffer_Ljava_text_FieldPosition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
 
@@ -602,6 +635,10 @@ public class DecimalFormatTest extends T
     }
 
     public void test_setMaximumFractionDigitsLjava_lang_Integer() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
 
@@ -613,6 +650,10 @@ public class DecimalFormatTest extends T
     }
 
     public void test_setMinimumFractionDigitsLjava_lang_Integer() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
 
@@ -624,6 +665,10 @@ public class DecimalFormatTest extends T
     }
 
     public void test_setMaximumIntegerDigitsLjava_lang_Integer() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
 
@@ -635,6 +680,10 @@ public class DecimalFormatTest extends T
     }
 
     public void test_setMinimumIntegerDigitsLjava_lang_Integer() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
 
@@ -648,6 +697,10 @@ public class DecimalFormatTest extends T
     // When MaxFractionDigits is set first and less than MinFractionDigits, max
     // will be changed to min value
     public void test_setMinimumFactionDigitsLjava_lang_Integer_setMaximumFractionDigitsLjava_lang_Integer() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
 
@@ -667,6 +720,10 @@ public class DecimalFormatTest extends T
     // When MinFractionDigits is set first and less than MaxFractionDigits, min
     // will be changed to max value
     public void test_setMaximumFactionDigitsLjava_lang_Integer_setMinimumFractionDigitsLjava_lang_Integer() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
 
@@ -684,6 +741,10 @@ public class DecimalFormatTest extends T
     }
 
     public void test_equalsLjava_lang_Object() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat format = (DecimalFormat) DecimalFormat.getInstance(Locale.US);
         DecimalFormat cloned = (DecimalFormat) format.clone();
         cloned.setDecimalFormatSymbols(new DecimalFormatSymbols(Locale.US));
@@ -696,26 +757,46 @@ public class DecimalFormatTest extends T
     }
 
     public void test_setPositivePrefixLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat format = new DecimalFormat();
         assertEquals("", format.getPositivePrefix());
     }
 
     public void test_setPositiveSuffixLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat format = new DecimalFormat();
         assertEquals("", format.getPositiveSuffix());
     }
 
     public void test_setNegativePrefixLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat format = new DecimalFormat();
         assertEquals("-", format.getNegativePrefix());
     }
 
     public void test_setNegativeSuffixLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat format = new DecimalFormat();
         assertEquals("", format.getNegativeSuffix());
     }
 
     public void test_setGroupingUse() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat format = new DecimalFormat();
         StringBuffer buf = new StringBuffer();
         format.setGroupingUsed(false);
@@ -728,6 +809,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#DecimalFormat(java.lang.String)
      */
     public void test_ConstructorLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.text.DecimalFormat(java.lang.String)
         // the constructor form that specifies a pattern is equal to the form
         // constructed with no pattern and applying that pattern using the
@@ -743,6 +828,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#applyPattern(java.lang.String)
      */
     public void test_applyPatternLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat format = new DecimalFormat("#.#");
         assertEquals("Wrong pattern 1", "#0.#", format.toPattern());
         format = new DecimalFormat("#.");
@@ -757,6 +846,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#clone()
      */
     public void test_clone() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat format = (DecimalFormat) DecimalFormat.getInstance(Locale.US);
         DecimalFormat cloned = (DecimalFormat) format.clone();
         assertEquals(cloned.getDecimalFormatSymbols(), format
@@ -792,6 +885,10 @@ public class DecimalFormatTest extends T
      */
     //FIXME This test fails on Harmony ClassLibrary
     public void test_formatDLjava_lang_StringBufferLjava_text_FieldPosition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         new Support_DecimalFormat(
                 "test_formatDLjava_lang_StringBufferLjava_text_FieldPosition")
                 .t_format_with_FieldPosition();
@@ -1025,6 +1122,10 @@ public class DecimalFormatTest extends T
      */
     //FIXME This test fails on Harmony ClassLibrary
     public void test_formatJLjava_lang_StringBufferLjava_text_FieldPosition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         int failCount = 0;
         BitSet failures = new BitSet();
 
@@ -1099,6 +1200,10 @@ public class DecimalFormatTest extends T
     //FIXME This test fails on Harmony ClassLibrary
     public void test_formatToCharacterIteratorLjava_lang_Object() {
 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             // Regression for HARMONY-466
             new DecimalFormat().formatToCharacterIterator(null);
@@ -1116,6 +1221,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#format(double)
      */
     public void test_formatD() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat format = (DecimalFormat) NumberFormat
                 .getInstance(Locale.ENGLISH);
         format.setGroupingUsed(false);
@@ -1165,6 +1274,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#getDecimalFormatSymbols()
      */
     public void test_getDecimalFormatSymbols() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = (DecimalFormat) NumberFormat
                 .getInstance(Locale.ENGLISH);
         DecimalFormatSymbols dfs = df.getDecimalFormatSymbols();
@@ -1176,6 +1289,10 @@ public class DecimalFormatTest extends T
      */
     //FIXME This test fails on Harmony ClassLibrary
     public void test_getCurrency() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Currency currK = Currency.getInstance("KRW");
         Currency currX = Currency.getInstance("XXX");
         Currency currE = Currency.getInstance("EUR");
@@ -1217,6 +1334,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#getGroupingSize()
      */
     public void test_getGroupingSize() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = new DecimalFormat("###0.##");
         assertEquals("Wrong unset size", 0, df.getGroupingSize());
         df = new DecimalFormat("#,##0.##");
@@ -1229,6 +1350,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#getMultiplier()
      */
     public void test_getMultiplier() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         final int defaultMultiplier = 1;
         NumberFormat nform = DecimalFormat.getInstance(Locale.US);
         DecimalFormat form = (DecimalFormat) nform;
@@ -1246,6 +1371,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#isDecimalSeparatorAlwaysShown()
      */
     public void test_isDecimalSeparatorAlwaysShown() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = new DecimalFormat("###0.##");
         assertTrue("Wrong unset value", !df.isDecimalSeparatorAlwaysShown());
         df = new DecimalFormat("###0.00");
@@ -1260,6 +1389,10 @@ public class DecimalFormatTest extends T
      */
     //FIXME This test fails on Harmony ClassLibrary
     public void test_parseLjava_lang_StringLjava_text_ParsePosition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat format = (DecimalFormat) NumberFormat
                 .getNumberInstance(Locale.ENGLISH);
         ParsePosition pos = new ParsePosition(0);
@@ -1353,6 +1486,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#setDecimalFormatSymbols(java.text.DecimalFormatSymbols)
      */
     public void test_setDecimalFormatSymbolsLjava_text_DecimalFormatSymbols() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = new DecimalFormat("###0.##");
         DecimalFormatSymbols dfs = new DecimalFormatSymbols();
         dfs.setDecimalSeparator('@');
@@ -1374,6 +1511,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#setDecimalSeparatorAlwaysShown(boolean)
      */
     public void test_setDecimalSeparatorAlwaysShownZ() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = new DecimalFormat("###0.##",
                                              new DecimalFormatSymbols(Locale.US));
         assertEquals("Wrong default result", "5", df.format(5));
@@ -1386,6 +1527,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#setCurrency(java.util.Currency)
      */
     public void test_setCurrencyLjava_util_Currency() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Locale locale = Locale.CANADA;
         DecimalFormat df = ((DecimalFormat) NumberFormat
                 .getCurrencyInstance(locale));
@@ -1412,6 +1557,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#setGroupingSize(int)
      */
     public void test_setGroupingSizeI() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = new DecimalFormat("###0.##",
                 new DecimalFormatSymbols(Locale.ENGLISH));
         df.setGroupingUsed(true);
@@ -1425,6 +1574,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#setMaximumFractionDigits(int)
      */
     public void test_setMaximumFractionDigitsI() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = new DecimalFormat("###0.##",
                                              new DecimalFormatSymbols(Locale.US));
         df.setMaximumFractionDigits(3);
@@ -1439,6 +1592,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#setMaximumIntegerDigits(int)
      */
     public void test_setMaximumIntegerDigitsI() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = new DecimalFormat("###0.##");
         df.setMaximumIntegerDigits(2);
         assertEquals("Not set", 2, df.getMaximumIntegerDigits());
@@ -1452,6 +1609,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#setMinimumFractionDigits(int)
      */
     public void test_setMinimumFractionDigitsI() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = new DecimalFormat("###0.##",
                                              new DecimalFormatSymbols(Locale.US));
         df.setMinimumFractionDigits(4);
@@ -1466,6 +1627,10 @@ public class DecimalFormatTest extends T
      * @tests java.text.DecimalFormat#setMinimumIntegerDigits(int)
      */
     public void test_setMinimumIntegerDigitsI() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = new DecimalFormat("###0.##",
                                              new DecimalFormatSymbols(Locale.US));
         df.setMinimumIntegerDigits(3);
@@ -1481,6 +1646,10 @@ public class DecimalFormatTest extends T
      */
     //FIXME This test fails on Harmony ClassLibrary
     public void test_setMultiplierI() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         DecimalFormat df = new DecimalFormat("###0.##");
         df.setMultiplier(10);
         assertEquals("Wrong multiplier", 10, df.getMultiplier());
@@ -1497,6 +1666,10 @@ public class DecimalFormatTest extends T
      * @tests serialization/deserialization compatibility.
      */
     public void testSerializationSelf() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         SerializationTest.verifySelf(new DecimalFormat());
     }
 
@@ -1504,6 +1677,10 @@ public class DecimalFormatTest extends T
      * @tests serialization compatibility with RI
      */
     public void test_serializationHarmonyRICompatible() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         NumberFormat nf = NumberFormat.getInstance(Locale.FRANCE);
 
         DecimalFormat df = null;
@@ -1562,6 +1739,10 @@ public class DecimalFormatTest extends T
      * Test whether DecimalFormat can parse Positive infinity correctly
      */
     public void testParseInfinityBigDecimalFalse() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Regression test for HARMONY-106
         DecimalFormat format = (DecimalFormat) DecimalFormat.getInstance();
         DecimalFormatSymbols symbols = new DecimalFormatSymbols();
@@ -1575,6 +1756,10 @@ public class DecimalFormatTest extends T
      * Test whether DecimalFormat can parse Negative infinity correctly
      */
     public void testParseMinusInfinityBigDecimalFalse() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Regression test for HARMONY-106
         DecimalFormat format = (DecimalFormat) DecimalFormat.getInstance();
         DecimalFormatSymbols symbols = new DecimalFormatSymbols();
@@ -1589,6 +1774,10 @@ public class DecimalFormatTest extends T
      * when it is called with null parameter.
      */
     public void testSetDecimalFormatSymbolsAsNull(){
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	// Regression for HARMONY-1070
         DecimalFormat format = (DecimalFormat)DecimalFormat.getInstance();
         format.setDecimalFormatSymbols(null);                     

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/MessageFormatTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/MessageFormatTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/MessageFormatTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/MessageFormatTest.java Wed May 26 09:31:07 2010
@@ -38,6 +38,7 @@ import java.util.Locale;
 import java.util.TimeZone;
 
 import junit.framework.TestCase;
+import tests.support.Support_Excludes;
 
 public class MessageFormatTest extends TestCase {
 
@@ -69,6 +70,10 @@ public class MessageFormatTest extends T
      *        java.util.Locale)
      */
     public void test_ConstructorLjava_lang_StringLjava_util_Locale() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.text.MessageFormat(java.lang.String,
         // java.util.Locale)
         Locale mk = new Locale("mk", "MK");
@@ -89,6 +94,10 @@ public class MessageFormatTest extends T
      * @tests java.text.MessageFormat#MessageFormat(java.lang.String)
      */
     public void test_ConstructorLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.text.MessageFormat(java.lang.String)
         MessageFormat format = new MessageFormat(
                 "abc {4,time} def {3,date} ghi {2,number} jkl {1,choice,0#low|1#high} mnop {0}");
@@ -165,6 +174,10 @@ public class MessageFormatTest extends T
      * @tests java.text.MessageFormat#applyPattern(java.lang.String)
      */
     public void test_applyPatternLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method void
         // java.text.MessageFormat.applyPattern(java.lang.String)
         MessageFormat format = new MessageFormat("test");
@@ -308,6 +321,10 @@ public class MessageFormatTest extends T
      * @tests java.text.MessageFormat#clone()
      */
     public void test_clone() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.lang.Object java.text.MessageFormat.clone()
         MessageFormat format = new MessageFormat("'{'choice'}'{0}");
         MessageFormat clone = (MessageFormat) format.clone();
@@ -326,6 +343,10 @@ public class MessageFormatTest extends T
      * @tests java.text.MessageFormat#equals(java.lang.Object)
      */
     public void test_equalsLjava_lang_Object() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method boolean
         // java.text.MessageFormat.equals(java.lang.Object)
         MessageFormat format1 = new MessageFormat("{0}");
@@ -343,6 +364,10 @@ public class MessageFormatTest extends T
      * @tests java.text.MessageFormat#hashCode()
      */
     public void test_hashCode() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method
         // int java.text.MessageFormat.hashCode()
         assertEquals("Should be equal", 3648, new MessageFormat("rr", null).hashCode());
@@ -362,6 +387,10 @@ public class MessageFormatTest extends T
      *        java.lang.StringBuffer, java.text.FieldPosition)
      */
     public void test_format$Ljava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.lang.StringBuffer
         // java.text.MessageFormat.format(java.lang.Object [],
         // java.lang.StringBuffer, java.text.FieldPosition)
@@ -386,6 +415,10 @@ public class MessageFormatTest extends T
      *        java.lang.StringBuffer, java.text.FieldPosition)
      */
     public void test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.lang.StringBuffer
         // java.text.MessageFormat.format(java.lang.Object,
         // java.lang.StringBuffer, java.text.FieldPosition)
@@ -398,6 +431,10 @@ public class MessageFormatTest extends T
      * @tests java.text.MessageFormat#getFormats()
      */
     public void test_getFormats() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.text.Format []
         // java.text.MessageFormat.getFormats()
 
@@ -440,6 +477,10 @@ public class MessageFormatTest extends T
      * @tests java.text.MessageFormat#getFormatsByArgumentIndex()
      */
     public void test_getFormatsByArgumentIndex() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.text.Format [] test_getFormatsByArgumentIndex()
 
         // test with repeating formats and max argument index < max offset
@@ -480,6 +521,10 @@ public class MessageFormatTest extends T
      *        java.text.Format)
      */
     public void test_setFormatByArgumentIndexILjava_text_Format() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // test for method setFormatByArgumentIndex(int, Format)
         MessageFormat f1 = (MessageFormat) format1.clone();
         f1.setFormatByArgumentIndex(0, DateFormat.getTimeInstance());
@@ -560,6 +605,10 @@ public class MessageFormatTest extends T
      * @tests java.text.MessageFormat#setFormatsByArgumentIndex(java.text.Format[])
      */
     public void test_setFormatsByArgumentIndex$Ljava_text_Format() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // test for method setFormatByArgumentIndex(Format[])
         MessageFormat f1 = (MessageFormat) format1.clone();
 
@@ -648,6 +697,10 @@ public class MessageFormatTest extends T
      *        java.text.ParsePosition)
      */
     public void test_parseLjava_lang_StringLjava_text_ParsePosition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MessageFormat format = new MessageFormat("date is {0,date,MMM d, yyyy}");
         ParsePosition pos = new ParsePosition(2);
         Object[] result = (Object[]) format
@@ -679,6 +732,10 @@ public class MessageFormatTest extends T
      * @tests java.text.MessageFormat#setLocale(java.util.Locale)
      */
     public void test_setLocaleLjava_util_Locale() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method void
         // java.text.MessageFormat.setLocale(java.util.Locale)
         MessageFormat format = new MessageFormat("date {0,date}");
@@ -693,6 +750,10 @@ public class MessageFormatTest extends T
      * @tests java.text.MessageFormat#toPattern()
      */
     public void test_toPattern() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.lang.String java.text.MessageFormat.toPattern()
         String pattern = "[{0}]";
         MessageFormat mf = new MessageFormat(pattern);
@@ -735,6 +796,10 @@ public class MessageFormatTest extends T
 	 * @tests java.text.MessageFormat(java.util.Locale)
 	 */
 	public void test_ConstructorLjava_util_Locale() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Regression for HARMONY-65
 		try {
 			new MessageFormat("{0,number,integer", Locale.US);
@@ -748,6 +813,10 @@ public class MessageFormatTest extends T
 	 * @tests java.text.MessageFormat#parse(java.lang.String)
 	 */
 	public void test_parse() throws ParseException {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Regression for HARMONY-63
 		MessageFormat mf = new MessageFormat("{0,number,#,####}", Locale.US);
 		Object[] res = mf.parse("1,00,00");
@@ -756,6 +825,10 @@ public class MessageFormatTest extends T
 	}
 
 	public void test_format_Object() { 
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Regression for HARMONY-1875
         Locale.setDefault(Locale.CANADA); 
         TimeZone.setDefault(TimeZone.getTimeZone("UTC")); 
@@ -769,6 +842,10 @@ public class MessageFormatTest extends T
     } 
 
     public void testHARMONY5323() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
     	Object []messageArgs = new Object[11];
     	for (int i = 0; i < messageArgs.length; i++)
     		messageArgs[i] = "dumb"+i;

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/RuleBasedCollatorTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/RuleBasedCollatorTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/RuleBasedCollatorTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/RuleBasedCollatorTest.java Wed May 26 09:31:07 2010
@@ -27,10 +27,15 @@ import java.text.StringCharacterIterator
 import java.util.Locale;
 
 import junit.framework.TestCase;
+import tests.support.Support_Excludes;
 
 public class RuleBasedCollatorTest extends TestCase {
 
 	public void test_getCollationKeyLjava_lang_String() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Regression test for HARMONY-28
 		String source = null;
 		RuleBasedCollator rbc = null;
@@ -45,6 +50,10 @@ public class RuleBasedCollatorTest exten
 	}
     
     public void testHashCode() throws ParseException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         {
             String rule = "< a < b < c < d";
             RuleBasedCollator coll = new RuleBasedCollator(rule);
@@ -60,6 +69,10 @@ public class RuleBasedCollatorTest exten
     }
 
     public void testClone() throws ParseException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         RuleBasedCollator coll = (RuleBasedCollator) Collator
                 .getInstance(Locale.US);
         RuleBasedCollator clone = (RuleBasedCollator) coll.clone();
@@ -73,6 +86,10 @@ public class RuleBasedCollatorTest exten
      * Class under test for boolean equals(java.lang.Object)
      */
     public void testEqualsObject() throws ParseException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         String rule = "< a < b < c < d < e";
         RuleBasedCollator coll = new RuleBasedCollator(rule);
 
@@ -93,12 +110,20 @@ public class RuleBasedCollatorTest exten
      * Class under test for int compare(java.lang.String, java.lang.String)
      */
     public void testCompareStringString() throws ParseException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         String rule = "< c < b < a";
         RuleBasedCollator coll = new RuleBasedCollator(rule);
         assertEquals(-1, coll.compare("c", "a"));
     }
 
     public void testGetCollationKey() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         RuleBasedCollator coll = (RuleBasedCollator) Collator
                 .getInstance(Locale.GERMAN);
         String source = "abc";
@@ -113,6 +138,10 @@ public class RuleBasedCollatorTest exten
     }
 
     public void testGetRules() throws ParseException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         String rule = "< a = b < c";
         RuleBasedCollator coll = new RuleBasedCollator(rule);
         assertEquals(rule, coll.getRules());
@@ -123,6 +152,10 @@ public class RuleBasedCollatorTest exten
      * getCollationElementIterator(java.lang.String)
      */
     public void testGetCollationElementIteratorString() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         {
             Locale locale = new Locale("es", "", "TRADITIONAL");
             RuleBasedCollator coll = (RuleBasedCollator) Collator
@@ -172,6 +205,10 @@ public class RuleBasedCollatorTest exten
      * getCollationElementIterator(java.text.CharacterIterator)
      */
     public void testGetCollationElementIteratorCharacterIterator() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         {
             Locale locale = new Locale("es", "", "TRADITIONAL");
             RuleBasedCollator coll = (RuleBasedCollator) Collator
@@ -220,6 +257,10 @@ public class RuleBasedCollatorTest exten
     }
 
     public void testStrength() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         RuleBasedCollator coll = (RuleBasedCollator) Collator
                 .getInstance(Locale.US);
         for (int i = 0; i < 4; i++) {
@@ -230,6 +271,10 @@ public class RuleBasedCollatorTest exten
     }
 
     public void testDecomposition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         RuleBasedCollator coll = (RuleBasedCollator) Collator
                 .getInstance(Locale.US);
         for (int i = 0; i < 2; i++) {
@@ -239,6 +284,10 @@ public class RuleBasedCollatorTest exten
     }
 
     public void testCollator_GetInstance() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Collator coll = Collator.getInstance();
         Object obj1 = "a";
         Object obj2 = "b";
@@ -249,6 +298,10 @@ public class RuleBasedCollatorTest exten
     }
 
     public void testGetAvailableLocales() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Locale[] locales = Collator.getAvailableLocales();
         // for (int i = 0; i < locales.length; i++) {
         // Locale locale = locales[i];
@@ -257,6 +310,10 @@ public class RuleBasedCollatorTest exten
 
     // Test CollationKey
     public void testCollationKey() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Collator coll = Collator.getInstance(Locale.US);
         String text = "abc";
         CollationKey key = coll.getCollationKey(text);
@@ -271,6 +328,10 @@ public class RuleBasedCollatorTest exten
      * @tests java.text.RuleBasedCollator.RuleBasedCollator(java.lang.String)
      */
     public void testNullPointerException() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         //Regression for HARMONY-241
         try {
             new RuleBasedCollator(null);
@@ -283,6 +344,10 @@ public class RuleBasedCollatorTest exten
      * @tests java.text.RuleBasedCollator.compare(java.lang.String, java.lang.String)
      */
     public void testCompareNull() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         //Regression for HARMONY-836
         try {
             new RuleBasedCollator("< a").compare(null, null);
@@ -295,6 +360,10 @@ public class RuleBasedCollatorTest exten
      * @tests java.text.RuleBasedCollator.RuleBasedCollator(java.lang.String)
      */
     public void testEmptyStringException() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         //Regression for HARMONY-241
         try {
             new RuleBasedCollator("");

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java Wed May 26 09:31:07 2010
@@ -28,6 +28,7 @@ import java.util.GregorianCalendar;
 import java.util.Locale;
 import java.util.SimpleTimeZone;
 import java.util.TimeZone;
+import tests.support.Support_Excludes;
 
 
 public class SimpleDateFormatTest extends junit.framework.TestCase {
@@ -45,6 +46,10 @@ public class SimpleDateFormatTest extend
 
         public void test(String pattern, Calendar cal, String expected,
                 int field) {
+            if (Support_Excludes.isExcluded()) {
+                return;
+            }
+
             StringBuffer buffer = new StringBuffer();
             FieldPosition position = new FieldPosition(field);
             format.applyPattern(pattern);
@@ -107,6 +112,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#SimpleDateFormat()
      */
     public void test_Constructor() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.text.SimpleDateFormat()
         SimpleDateFormat f2 = new SimpleDateFormat();
         assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class);
@@ -122,6 +131,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#SimpleDateFormat(java.lang.String)
      */
     public void test_ConstructorLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.text.SimpleDateFormat(java.lang.String)
         SimpleDateFormat f2 = new SimpleDateFormat("yyyy");
         assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class);
@@ -156,6 +169,10 @@ public class SimpleDateFormatTest extend
      *        java.text.DateFormatSymbols)
      */
     public void test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.text.SimpleDateFormat(java.lang.String,
         // java.text.DateFormatSymbols)
         DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH);
@@ -173,6 +190,10 @@ public class SimpleDateFormatTest extend
      *        java.util.Locale)
      */
     public void test_ConstructorLjava_lang_StringLjava_util_Locale() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.text.SimpleDateFormat(java.lang.String,
         // java.util.Locale)
         SimpleDateFormat f2 = new SimpleDateFormat("'yyyy' MM yy",
@@ -189,6 +210,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#applyLocalizedPattern(java.lang.String)
      */
     public void test_applyLocalizedPatternLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method void
         // java.text.SimpleDateFormat.applyLocalizedPattern(java.lang.String)
         SimpleDateFormat f2 = new SimpleDateFormat("y", new Locale("de", "CH"));
@@ -233,6 +258,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#applyPattern(java.lang.String)
      */
     public void test_applyPatternLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method void
         // java.text.SimpleDateFormat.applyPattern(java.lang.String)
         SimpleDateFormat f2 = new SimpleDateFormat("y", new Locale("de", "CH"));
@@ -269,6 +298,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#clone()
      */
     public void test_clone() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.lang.Object java.text.SimpleDateFormat.clone()
         SimpleDateFormat f2 = new SimpleDateFormat();
         SimpleDateFormat clone = (SimpleDateFormat) f2.clone();
@@ -287,6 +320,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#equals(java.lang.Object)
      */
     public void test_equalsLjava_lang_Object() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method boolean
         // java.text.SimpleDateFormat.equals(java.lang.Object)
         SimpleDateFormat format = (SimpleDateFormat) DateFormat.getInstance();
@@ -297,6 +334,10 @@ public class SimpleDateFormatTest extend
     }
 
     public void test_equals_afterFormat() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Regression test for HARMONY-209
         SimpleDateFormat df = new SimpleDateFormat();
         df.format(new Date());
@@ -308,6 +349,10 @@ public class SimpleDateFormatTest extend
      */
     public void test_formatToCharacterIteratorLjava_lang_Object() {
 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             // Regression for HARMONY-466
             new SimpleDateFormat().formatToCharacterIterator(null);
@@ -327,6 +372,10 @@ public class SimpleDateFormatTest extend
      *        java.lang.StringBuffer, java.text.FieldPosition)
      */
     public void test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.lang.StringBuffer
         // java.text.SimpleDateFormat.format(java.util.Date,
         // java.lang.StringBuffer, java.text.FieldPosition)
@@ -506,6 +555,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#format(java.util.Date)
      */
     public void test_timeZoneFormatting() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // tests specific to formatting of timezones
         Date summerDate = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3,
                 6).getTime();
@@ -546,6 +599,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#get2DigitYearStart()
      */
     public void test_get2DigitYearStart() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.util.Date
         // java.text.SimpleDateFormat.get2DigitYearStart()
         SimpleDateFormat f1 = new SimpleDateFormat("y");
@@ -561,6 +618,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#getDateFormatSymbols()
      */
     public void test_getDateFormatSymbols() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.text.DateFormatSymbols
         // java.text.SimpleDateFormat.getDateFormatSymbols()
         SimpleDateFormat df = (SimpleDateFormat) DateFormat.getInstance();
@@ -573,6 +634,10 @@ public class SimpleDateFormatTest extend
      *        java.text.ParsePosition)
      */
     public void test_parseLjava_lang_StringLjava_text_ParsePosition() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.util.Date
         // java.text.SimpleDateFormat.parse(java.lang.String,
         // java.text.ParsePosition)
@@ -779,6 +844,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#set2DigitYearStart(java.util.Date)
      */
     public void test_set2DigitYearStartLjava_util_Date() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method void
         // java.text.SimpleDateFormat.set2DigitYearStart(java.util.Date)
         SimpleDateFormat f1 = new SimpleDateFormat("yy");
@@ -806,6 +875,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#setDateFormatSymbols(java.text.DateFormatSymbols)
      */
     public void test_setDateFormatSymbolsLjava_text_DateFormatSymbols() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method void
         // java.text.SimpleDateFormat.setDateFormatSymbols(java.text.DateFormatSymbols)
         SimpleDateFormat f1 = new SimpleDateFormat("a");
@@ -827,6 +900,10 @@ public class SimpleDateFormatTest extend
      * @tests java.text.SimpleDateFormat#toLocalizedPattern()
      */
     public void test_toLocalizedPattern() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method java.lang.String
         // java.text.SimpleDateFormat.toLocalizedPattern()
         SimpleDateFormat f2 = new SimpleDateFormat("GyMdkHmsSEDFwWahKz",
@@ -846,6 +923,10 @@ public class SimpleDateFormatTest extend
      *        java.text.ParsePosition)
      */
     public void test_parse_with_spaces() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Regression for HARMONY-502
         SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss");
         df.setLenient(false);

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/x-net/make/run-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/x-net/make/run-test.xml?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/x-net/make/run-test.xml (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/x-net/make/run-test.xml Wed May 26 09:31:07 2010
@@ -33,7 +33,7 @@
 
     <target name="test-module"
             depends="-test-module,-test-module-impl" />
-    <target name="-test-module" depends="test-jre-vm-info">
+    <target name="-test-module">
         <convert-test-as-class from="test.case" to="converted.tc.class" />
         <run-hdk-tests module="x-net" jar="x-net_api_tests.jar">
             <junit-elements>

Modified: harmony/enhanced/java/branches/mrh/classlib/support/src/test/java/tests/support/Support_Excludes.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/support/src/test/java/tests/support/Support_Excludes.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/support/src/test/java/tests/support/Support_Excludes.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/support/src/test/java/tests/support/Support_Excludes.java Wed May 26 09:31:07 2010
@@ -106,7 +106,7 @@ public class Support_Excludes {
                 new BufferedReader(new FileReader("excludes/"+excludeFile));
             String line;
             while ((line = reader.readLine()) != null
-                   && !line.startsWith("#")) {
+                   && !line.startsWith('#')) {
                 if (line.endsWith(".java")) {
                     line = line.substring(0,line.length()-5);
                 } else if (line.endsWith(".class")) {

Modified: harmony/enhanced/java/branches/mrh/common_resources/make/properties.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/common_resources/make/properties.xml?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/common_resources/make/properties.xml (original)
+++ harmony/enhanced/java/branches/mrh/common_resources/make/properties.xml Wed May 26 09:31:07 2010
@@ -120,14 +120,6 @@
     <property name="build.module" value="*" />
     <property name="exclude.module" value="nothing" />
 
-    <!-- names of exclude lists, used by prepare-exclude-list macro -->
-    <property name="common.exclude.file" value="exclude.common" />
-    <property name="common.exclude.interm" value="exclude.interm" />
-    <property name="platform.exclude.file"
-              value="exclude.${hy.platform}.${hy.test.vm.name}" />
-    <property name="platform.exclude.interm"
-              value="exclude.${hy.platform}.${hy.test.vm.name}.interm" />
-
     <!-- flags -->
     <property name="hy.no.thr" value="false" />
     <condition property="hy.skip.thr" value="true">
@@ -316,30 +308,6 @@ properties in preference to these:
     </macrodef>
     <convert-test from="test.case" to="converted.tc" />
     
-    <!-- Concatenate several exclude lists into single list -->
-    <macrodef name="prepare-exclude-list">
-       <attribute name="moduleName"/>
-       <!-- directory with exclude lists for the module -->
-       <attribute name="dir"/>
-       <!-- name of concatenated list, should be an absolute pathname -->
-       <attribute name="result"/>
-       <sequential>
-           <dirname file="@{result}" property="@{result}.dir" />
-           <mkdir dir="${@{result}.dir}" />
-
-           <echo message="" file="@{result}"/>
-           <concat destfile="@{result}" force="yes" fixlastline="yes" append="true">
-               <fileset dir="@{dir}">
-                   <include name="${common.exclude.file}"/> 
-                   <include name="${platform.exclude.file}"/>
-                   <include name="${common.exclude.interm}" if="exclude.interm" />
-                   <include name="${platform.exclude.interm}" if="exclude.interm" />
-                   <size value="0" when="more"/>
-               </fileset>
-           </concat>
-       </sequential>
-   </macrodef>
-    
     <macrodef name="ensure-javac">
         <sequential>
             <fail>

Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/jdktools/make/run-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/jdktools/make/run-test.xml?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/jdktools/make/run-test.xml (original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/jdktools/make/run-test.xml Wed May 26 09:31:07 2010
@@ -31,7 +31,7 @@
 
     <target name="test" depends="test-module" />
 
-    <target name="test-module" depends="test-jre-vm-info">
+    <target name="test-module">
         <convert-test-as-class from="test.case" to="converted.tc.class" />
         <run-hdk-tests module="jdktools" jar="jdktools_tests.jar">
             <junit-elements>

Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/make/run-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/make/run-test.xml?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/make/run-test.xml (original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/make/run-test.xml Wed May 26 09:31:07 2010
@@ -31,7 +31,7 @@
 
     <target name="test" depends="test-module" />
 
-    <target name="test-module" depends="test-jre-vm-info">
+    <target name="test-module">
         <property name="test.jre.home" value="${hy.jdk}/jre" />
         <property name="test.jre.jvm" value="${test.jre.home}/bin/java" />
         <property name="test.debugger.jvm" value="${test.jre.jvm}" />

Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ClassUnloadTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ClassUnloadTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ClassUnloadTest.java (original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ClassUnloadTest.java Wed May 26 09:31:07 2010
@@ -32,6 +32,7 @@ import org.apache.harmony.jpda.tests.fra
 import org.apache.harmony.jpda.tests.framework.jdwp.ReplyPacket;
 import org.apache.harmony.jpda.tests.framework.jdwp.exceptions.TimeoutException;
 import org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer;
+import tests.support.Support_Excludes;
 
 /**
  * JDWP Unit test for CLASS_UNLOAD event.
@@ -56,6 +57,10 @@ public class ClassUnloadTest extends JDW
      * This testcase is for CLASS_UNLOAD event.
      */
     public void testClassUnloadEvent() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         logWriter.println("==> testClassUnloadEvent started");
         
         synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);

Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ClassObjectIDTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ClassObjectIDTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ClassObjectIDTest.java (original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ClassObjectIDTest.java Wed May 26 09:31:07 2010
@@ -29,6 +29,7 @@ import org.apache.harmony.jpda.tests.fra
 import org.apache.harmony.jpda.tests.jdwp.share.JDWPSyncTestCase;
 import org.apache.harmony.jpda.tests.jdwp.share.JDWPUnitDebuggeeWrapper;
 import org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer;
+import tests.support.Support_Excludes;
 
 
 /**
@@ -53,6 +54,10 @@ public class ClassObjectIDTest extends J
      */
     public void testClassObjectID001() {
 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);
 
         long classID = debuggeeWrapper.vmMirror.getClassID(DEBUGGEE_SIGNATURE);

Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/EnableCollectionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/EnableCollectionTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/EnableCollectionTest.java (original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/EnableCollectionTest.java Wed May 26 09:31:07 2010
@@ -34,6 +34,7 @@ import org.apache.harmony.jpda.tests.fra
 import org.apache.harmony.jpda.tests.jdwp.share.JDWPSyncTestCase;
 import org.apache.harmony.jpda.tests.jdwp.share.JDWPUnitDebuggeeWrapper;
 import org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer;
+import tests.support.Support_Excludes;
 
 
 /**
@@ -59,6 +60,10 @@ public class EnableCollectionTest extend
      * <BR>It is expected that checked object is garbage collected after re-connection.
      */
     public void testEnableCollection001() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         String thisTestName = "testEnableCollection001";
         logWriter.println("==> testEnableCollection001 started..");
         synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);

Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/RefTypeIDTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/RefTypeIDTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/RefTypeIDTest.java (original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/RefTypeIDTest.java Wed May 26 09:31:07 2010
@@ -29,6 +29,7 @@ import org.apache.harmony.jpda.tests.fra
 import org.apache.harmony.jpda.tests.jdwp.share.JDWPSyncTestCase;
 import org.apache.harmony.jpda.tests.jdwp.share.JDWPUnitDebuggeeWrapper;
 import org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer;
+import tests.support.Support_Excludes;
 
 
 /**
@@ -53,6 +54,10 @@ public class RefTypeIDTest extends JDWPS
      */
     public void testRefTypeID001() {
 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);
         
         long classID = debuggeeWrapper.vmMirror.getClassID(DEBUGGEE_SIGNATURE);

Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/EnableCollectionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/EnableCollectionTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/EnableCollectionTest.java (original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/EnableCollectionTest.java Wed May 26 09:31:07 2010
@@ -32,6 +32,7 @@ import org.apache.harmony.jpda.tests.fra
 import org.apache.harmony.jpda.tests.framework.jdwp.Value;
 import org.apache.harmony.jpda.tests.jdwp.share.JDWPSyncTestCase;
 import org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer;
+import tests.support.Support_Excludes;
 
 
 /**
@@ -58,6 +59,10 @@ public class EnableCollectionTest extend
      * <BR>If so the test passes. Otherwise it fails in case when pattern object is unloaded.
      */
     public void testEnableCollection001() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         String thisTestName = "testEnableCollection001";
         logWriter.println("==> " + thisTestName + " for " + thisCommandName + ": START...");
         synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);

Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/CapabilitiesNewTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/CapabilitiesNewTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/CapabilitiesNewTest.java (original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/CapabilitiesNewTest.java Wed May 26 09:31:07 2010
@@ -30,6 +30,7 @@ import org.apache.harmony.jpda.tests.fra
 import org.apache.harmony.jpda.tests.framework.jdwp.ReplyPacket;
 import org.apache.harmony.jpda.tests.jdwp.share.JDWPSyncTestCase;
 import org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer;
+import tests.support.Support_Excludes;
 
 
 /**
@@ -84,6 +85,10 @@ public class CapabilitiesNewTest extends
      * there are no extra data in the reply packet;
      */
     public void testCapabilitiesNew001() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);
 
         CommandPacket packet = new CommandPacket(

Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/jretools/make/run-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/jretools/make/run-test.xml?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/jretools/make/run-test.xml (original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/jretools/make/run-test.xml Wed May 26 09:31:07 2010
@@ -31,7 +31,7 @@
 
     <target name="test" depends="test-module" />
 
-    <target name="test-module" depends="test-jre-vm-info">
+    <target name="test-module">
         <convert-test-as-class from="test.case" to="converted.tc.class" />
         <run-hdk-tests module="jretools" jar="jretools_tests.jar">
             <junit-elements>

Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/samsa/make/run-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/samsa/make/run-test.xml?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/samsa/make/run-test.xml (original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/samsa/make/run-test.xml Wed May 26 09:31:07 2010
@@ -31,7 +31,7 @@
 
     <target name="test" depends="test-module" />
 
-    <target name="test-module" depends="test-jre-vm-info">
+    <target name="test-module">
         <echo message="Running SAMSA tests" />
         <echo message="test.jre.home=${test.jre.home}" />
 



Mime
View raw message