ExifInterfaceTest: Catch IOException am: c9ed3b8a5b am: a4ec9714b3 am: b6f40a84fa

am: 815d687215

Change-Id: I7a1f157a59f342dfbe8c9b08f387e121d781280a
This commit is contained in:
Sungsoo
2016-10-18 17:55:20 +00:00
committed by android-build-merger

View File

@@ -416,7 +416,7 @@ public class ExifInterfaceTest extends AndroidTestCase {
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;