commit | 8694b14d42f383e81dd88fa5c3f30ddb83766a88 | [log] [tgz] |
---|---|---|
author | Sungsoo <sungsoo@google.com> | Wed Nov 02 09:41:37 2016 +0900 |
committer | Sungsoo <sungsoo@google.com> | Wed Nov 02 09:45:35 2016 +0900 |
tree | 424e5823910fef151bb1bb9bcc70198cfd8a8447 | |
parent | 0f430299a3763f68a21ba341aa11b9d2c8651ecf [diff] |
ExifInterfaceTest: Catch IOException ExifInterface throws IOException instead of UnsupportedOperationException. Bug: 32221877 Change-Id: I6c2f2532c8a9276b57a9d637360e18f554096507
diff --git a/tests/tests/media/src/android/media/cts/ExifInterfaceTest.java b/tests/tests/media/src/android/media/cts/ExifInterfaceTest.java index dff6b1c..c346dad 100644 --- a/tests/tests/media/src/android/media/cts/ExifInterfaceTest.java +++ b/tests/tests/media/src/android/media/cts/ExifInterfaceTest.java
@@ -424,7 +424,7 @@ in = getContext().getAssets().open(imageFile.getName()); ExifInterface exifInterface = new ExifInterface(in); exifInterface.saveAttributes(); - } catch (UnsupportedOperationException e) { + } catch (IOException e) { // Expected. saveAttributes is not supported with an ExifInterface object which was // created with InputStream. return;