harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivavladi...@apache.org
Subject svn commit: r548922 - /harmony/enhanced/buildtest/branches/2.0/tests/tools/harness/org/apache/harmony/harness/plugins/TestFinder.java
Date Wed, 20 Jun 2007 04:01:15 GMT
Author: ivavladimir
Date: Tue Jun 19 21:01:14 2007
New Revision: 548922

URL: http://svn.apache.org/viewvc?view=rev&rev=548922
Log:
issue 4168 was fixed

Modified:
    harmony/enhanced/buildtest/branches/2.0/tests/tools/harness/org/apache/harmony/harness/plugins/TestFinder.java

Modified: harmony/enhanced/buildtest/branches/2.0/tests/tools/harness/org/apache/harmony/harness/plugins/TestFinder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/tools/harness/org/apache/harmony/harness/plugins/TestFinder.java?view=diff&rev=548922&r1=548921&r2=548922
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/tools/harness/org/apache/harmony/harness/plugins/TestFinder.java
(original)
+++ harmony/enhanced/buildtest/branches/2.0/tests/tools/harness/org/apache/harmony/harness/plugins/TestFinder.java
Tue Jun 19 21:01:14 2007
@@ -79,7 +79,7 @@
                     + "Can not read the directory " + root);
             }
         }
-        if (root.getName().indexOf(TST_SUFFIX) != -1) {
+        if (root.getName().endsWith(TST_SUFFIX)) {
             if (mask != null && mask.length > 0) {
                 for (int i = 0; i < mask.length; i++) {
                     String tmp = root.getPath();
@@ -126,7 +126,7 @@
             return false;
         }
         try {
-            if (testName.indexOf(TST_SUFFIX) == -1) {
+            if (!testName.endsWith(TST_SUFFIX)) {
                 return false;
             }
             fl = new File(testName);



Mime
View raw message