Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae202c6f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix MemoryFileTest coretest" into pi-dev

parents 09a42e95 f044ef71
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.test.suitebuilder.annotation.SmallTest;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.BufferOverflowException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@@ -110,7 +111,7 @@ public class MemoryFileTest extends AndroidTestCase {
        try {
            os.write(new byte[] { -1, -1 });
            fail();
        } catch (IndexOutOfBoundsException expected) {
        } catch (IndexOutOfBoundsException | BufferOverflowException expected) {
        }

        byte[] copy = new byte[file.length()];