diff options
Diffstat (limited to 'Tests/LibCompress')
-rw-r--r-- | Tests/LibCompress/TestLzma.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/LibCompress/TestLzma.cpp b/Tests/LibCompress/TestLzma.cpp index 825a54803c..6007d6c8ac 100644 --- a/Tests/LibCompress/TestLzma.cpp +++ b/Tests/LibCompress/TestLzma.cpp @@ -166,7 +166,6 @@ TEST_CASE(specification_bad_incorrect_size_lzma_decompress) auto stream = MUST(try_make<FixedMemoryStream>(compressed)); auto decompressor = MUST(Compress::LzmaDecompressor::create_from_container(move(stream))); - // FIXME: This should detect that there is still remaining (non-'end of stream') data after the expected data and reject the last read. - // As of now, this test accepts any result, except for crashes. - (void)decompressor->read_until_eof(PAGE_SIZE); + auto buffer_or_error = decompressor->read_until_eof(PAGE_SIZE); + EXPECT(buffer_or_error.is_error()); } |