Print files when dict file existence check is failed.
Change-Id: Id71f239afa95b68961192714998695c21ed48002main
parent
7185f30a5c
commit
caee2c1876
|
@ -67,6 +67,13 @@ public class UserHistoryDictionaryTests extends AndroidTestCase {
|
||||||
FileUtils.deleteFilteredFiles(dictFile.getParentFile(), filenameFilter);
|
FileUtils.deleteFilteredFiles(dictFile.getParentFile(), filenameFilter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void printAllFiles(final File dir) {
|
||||||
|
Log.d(TAG, dir.getAbsolutePath());
|
||||||
|
for (final File file : dir.listFiles()) {
|
||||||
|
Log.d(TAG, " " + file.getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
|
@ -274,6 +281,7 @@ public class UserHistoryDictionaryTests extends AndroidTestCase {
|
||||||
try {
|
try {
|
||||||
Log.d(TAG, dictFile +" is not existing. Wait "
|
Log.d(TAG, dictFile +" is not existing. Wait "
|
||||||
+ WAIT_FOR_WRITING_FILE_IN_MILLISECONDS + " ms for writing.");
|
+ WAIT_FOR_WRITING_FILE_IN_MILLISECONDS + " ms for writing.");
|
||||||
|
printAllFiles(dictFile.getParentFile());
|
||||||
Thread.sleep(WAIT_FOR_WRITING_FILE_IN_MILLISECONDS);
|
Thread.sleep(WAIT_FOR_WRITING_FILE_IN_MILLISECONDS);
|
||||||
} catch (final InterruptedException e) {
|
} catch (final InterruptedException e) {
|
||||||
Log.e(TAG, "Interrupted during waiting for writing the dict file.");
|
Log.e(TAG, "Interrupted during waiting for writing the dict file.");
|
||||||
|
|
Loading…
Reference in New Issue