aboutsummaryrefslogtreecommitdiff
path: root/tests/test_stream_flags.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-09-13 12:10:43 +0300
committerLasse Collin <lasse.collin@tukaani.org>2008-09-13 12:10:43 +0300
commit13a74b78e37f16c9096ba5fe1859cc04eaa2f9f7 (patch)
treeaa9c137d41bd5d39fa8835cc77cf325ff13a7e7c /tests/test_stream_flags.c
parentImproved the Stream Flags handling API. (diff)
downloadxz-13a74b78e37f16c9096ba5fe1859cc04eaa2f9f7.tar.xz
Renamed constants:
- LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX - LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN - LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR
Diffstat (limited to 'tests/test_stream_flags.c')
-rw-r--r--tests/test_stream_flags.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_stream_flags.c b/tests/test_stream_flags.c
index abd0296d..2ff216db 100644
--- a/tests/test_stream_flags.c
+++ b/tests/test_stream_flags.c
@@ -49,7 +49,7 @@ test_header_decoder(lzma_ret expected_ret)
// Header doesn't have Backward Size, so make
// lzma_stream_flags_compare() ignore it.
- decoded_flags.backward_size = LZMA_VLI_VALUE_UNKNOWN;
+ decoded_flags.backward_size = LZMA_VLI_UNKNOWN;
return validate();
}
@@ -116,7 +116,7 @@ test_encode_invalid(void)
expect(lzma_stream_footer_encode(&known_flags, buffer)
== LZMA_PROG_ERROR);
- known_flags.backward_size = LZMA_VLI_VALUE_MAX;
+ known_flags.backward_size = LZMA_VLI_MAX;
expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK);
@@ -147,7 +147,7 @@ test_decode_invalid(void)
buffer[6] ^= 0x20;
crc = lzma_crc32(buffer + 6, 2, 0);
integer_write_32(buffer + 8, crc);
- succeed(test_header_decoder(LZMA_HEADER_ERROR));
+ succeed(test_header_decoder(LZMA_OPTIONS_ERROR));
// Test 3 (invalid CRC32)
expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK);
@@ -159,7 +159,7 @@ test_decode_invalid(void)
buffer[9] ^= 0x40;
crc = lzma_crc32(buffer + 4, 6, 0);
integer_write_32(buffer, crc);
- succeed(test_footer_decoder(LZMA_HEADER_ERROR));
+ succeed(test_footer_decoder(LZMA_OPTIONS_ERROR));
// Test 5 (invalid Magic Bytes)
expect(lzma_stream_footer_encode(&known_flags, buffer) == LZMA_OK);