ICU-10945 Test log might be emitted through AbstractTestLog, which was missed in the previous change.

X-SVN-Rev: 35966
This commit is contained in:
Yoshito Umaoka 2014-06-30 16:54:21 +00:00
parent ac70eab7a3
commit 4ad6bfe991

View File

@ -1964,7 +1964,8 @@ public class TestFmwk extends AbstractTestLog {
// Walk up the stack to the first call site outside this file // Walk up the stack to the first call site outside this file
StackTraceElement[] st = new Throwable().getStackTrace(); StackTraceElement[] st = new Throwable().getStackTrace();
for (int i = 0; i < st.length; ++i) { 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() + ") "; return "(" + st[i].getFileName() + ":" + st[i].getLineNumber() + ") ";
} }
} }