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. Change-Id: Id62ea43d7a8ee276cf2f82916a3711028b36a349
Loading
Please sign in to comment