You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by va...@apache.org on 2007/04/18 10:30:38 UTC

svn commit: r529914 - /harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/RuntimeTest2.java

Author: varlax
Date: Wed Apr 18 01:30:35 2007
New Revision: 529914

URL: http://svn.apache.org/viewvc?view=rev&rev=529914
Log:
Quickfix for intermittent failures of test_exec_Str().
Ideally the whole test should be redone :(

Modified:
    harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/RuntimeTest2.java

Modified: harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/RuntimeTest2.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/RuntimeTest2.java?view=diff&rev=529914&r1=529913&r2=529914
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/RuntimeTest2.java (original)
+++ harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/RuntimeTest2.java Wed Apr 18 01:30:35 2007
@@ -285,7 +285,7 @@
         InputStream is = pi3.getInputStream();
         // wait for is.available != 0
         int count = 100;
-        while (is.available() < 1 && count-- > 0) {
+        while (is.available() < 60 && count-- > 0) {
             try {
                 Thread.sleep(10);
             } catch (InterruptedException e) {
@@ -301,8 +301,7 @@
         String r1 = new String(bb);
         if (r1.indexOf("The current date is") == -1
                 || r1.indexOf("Enter the new date") == -1) {
-            fail("exec(String[], String[], File).check002: where is " +
-            "the date's answer/request?");
+            fail("check002: " + r1);
         }
         for (int ii = 0; ii < ia; ii++) {
             bb[ii] = (byte) 0;