CTS: Clean up and fix MemoryFileTest

Tests should not catch exceptions unless they are expected. The Junit framework
automatically handles exceptions thrown by the tests.  Catching and failing
causes the original stacktrace to be lost.

Also fix testClose(), since the framework now correctly throws an exception
when an attempt is made to read from a closed MemoryFile.
1 file changed
tree: bbbb83b79b7f82ed3e0777a7a5bc3ea74982ed0d
  1. tests/
  2. tools/
  3. Android.mk