Fixes for apache-harmony logging tests
Moves all config and resources files beneath com/android to avoid conflicts with similar files held in libcore under the same package and also originate from apache-harmony. Updates to resource names in tests. Additional changes described below. FileHandlerTest: Refactoring to avoid getting the java.io.tmpdir before it has been changed by the test runner. Minor clean-up, plus... testLimitAndCount: The test was assuming it could write to the current directory. Prepended %t/ to paths to write to the temp dir instead. testInvalidParams(): The test was broken by Android changes but does not appear to be testing anything valuable. LoggerTest: Import cleanup plus: testGetLogger_Empty / testGetLoggerWithRes_Empty: The tests appears incorrect. test_initHandler: Changed to use resources rather than direct file access as this will work better under CTS. XmlFormatterTest: Use java.io.tempdir, not user.home to create a temp file. This will work better under Android. (cherry picked from commit 87819c04) Change-Id: I6ef8a9b8c4f0fd9502bfb5220dabb90a41970402
Loading
Please sign in to comment