aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-06-24 00:57:23 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-06-24 00:57:23 +0300
commitdfda7cf6afa486e10df035327d68753896dfb48a (patch)
tree2098995fd2c91dc24310082d87b550282b8609d6 /tests
parentxz: Change io_seek_src and io_pread arguments from off_t to uint64_t. (diff)
downloadxz-dfda7cf6afa486e10df035327d68753896dfb48a.tar.xz
Tests: Remove a duplicate branch from tests/tests.h.
The duplication was introduced about eleven years ago and should have been cleaned up back then already. This was caught by -Wduplicated-branches.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/tests.h b/tests/tests.h
index 8f3c745d..2fd42373 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -94,13 +94,8 @@ coder_loop(lzma_stream *strm, uint8_t *in, size_t in_size,
if (ret != expected_ret)
error = true;
- if (expected_ret == LZMA_STREAM_END) {
- if (strm->total_in != in_size || strm->total_out != out_size)
- error = true;
- } else {
- if (strm->total_in != in_size || strm->total_out != out_size)
- error = true;
- }
+ if (strm->total_in != in_size || strm->total_out != out_size)
+ error = true;
return error;
}