commit | a69bc064f311e4cd8bd9787023a296d70ab18cb2 | [log] [tgz] |
---|---|---|
author | Wonsik Kim <wonsik@google.com> | Tue May 16 13:40:59 2023 -0700 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Thu Jul 20 20:12:50 2023 +0000 |
tree | 658e829638af447e38bcb8beba0822d9acb6a592 | |
parent | af57e258c3b3dae14874dc939c5c48a436045c0e [diff] |
MediaMetadataRetrieverTest: fix MediaDataSource finalizer crash MediaDataSource impelments Closeable interface, so the finalizer attempts to close the object. testExceptionWhileClosingMediaDataSource() creates a MediaDataSource object that throws exception at close to verify the behavior. Stop throwing the exception from the object after verification so that the finalizer does not throw an exception that brings down the test process. Bug: 279658810 Test: atest CtsMediaMiscTestCases (cherry picked from https://android-review.googlesource.com/q/commit:7d6276433dd9dd129302730467eb3384acb310e1) Merged-In: I9157c930e7eaa316801291eaca9042aa616fd5cf Change-Id: I9157c930e7eaa316801291eaca9042aa616fd5cf