]> granicus.if.org Git - icu/commitdiff
ICU-10945 Test log might be emitted through AbstractTestLog, which was missed in...
authorYoshito Umaoka <y.umaoka@gmail.com>
Mon, 30 Jun 2014 16:54:21 +0000 (16:54 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Mon, 30 Jun 2014 16:54:21 +0000 (16:54 +0000)
X-SVN-Rev: 35966

icu4j/main/tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java

index 54ecd9a6bfaeb887d5316ef7ba7504674a05ee1a..657207e81db78caecdbc5d7def666fa84c40b9f2 100644 (file)
@@ -1964,7 +1964,8 @@ public class TestFmwk extends AbstractTestLog {
         // Walk up the stack to the first call site outside this file
         StackTraceElement[] st = new Throwable().getStackTrace();
         for (int i = 0; i < st.length; ++i) {
-            if (!"TestFmwk.java".equals(st[i].getFileName())) {
+            String source = st[i].getFileName();
+            if (!source.equals("TestFmwk.java") && !source.equals("AbstractTestLog.java")) {
                return "(" + st[i].getFileName() + ":" + st[i].getLineNumber() + ") ";
             }
         }