harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r529914 - /harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/RuntimeTest2.java
Date Wed, 18 Apr 2007 08:30:38 GMT
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;



Mime
View raw message