From 0afa32cd5977ec98f44c807c0426d779f3800b13 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 28 Mar 2016 20:30:15 +0000 Subject: Remove accidentally duplicated test This was identical to setArtificialByteLimitNotWordBoundary. llvm-svn: 264646 --- llvm/unittests/Bitcode/BitstreamReaderTest.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'llvm/unittests/Bitcode/BitstreamReaderTest.cpp') diff --git a/llvm/unittests/Bitcode/BitstreamReaderTest.cpp b/llvm/unittests/Bitcode/BitstreamReaderTest.cpp index 2aa36eb..c99239b48 100644 --- a/llvm/unittests/Bitcode/BitstreamReaderTest.cpp +++ b/llvm/unittests/Bitcode/BitstreamReaderTest.cpp @@ -140,19 +140,6 @@ TEST(BitstreamReaderTest, setArtificialByteLimitNotWordBoundary) { EXPECT_EQ(8u, Cursor.getCurrentByteNo()); } -TEST(BitstreamReaderTest, setArtificialByteLimitNot4ByteBoundary) { - uint8_t Bytes[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, - 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}; - BitstreamReader Reader(std::begin(Bytes), std::end(Bytes)); - SimpleBitstreamCursor Cursor(Reader); - - Cursor.setArtificialByteLimit(5); - while (!Cursor.AtEndOfStream()) - (void)Cursor.Read(1); - - EXPECT_EQ(8u, Cursor.getCurrentByteNo()); -} - TEST(BitstreamReaderTest, setArtificialByteLimitPastTheEnd) { uint8_t Bytes[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b}; -- cgit v1.1