aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_block_header.c1
-rw-r--r--tests/test_check.c2
-rw-r--r--tests/test_filter_flags.c2
-rw-r--r--tests/test_index.c2
-rw-r--r--tests/test_stream_flags.c2
-rw-r--r--tests/tests.h2
6 files changed, 1 insertions, 10 deletions
diff --git a/tests/test_block_header.c b/tests/test_block_header.c
index 5c0f8b9a..2fb22a5a 100644
--- a/tests/test_block_header.c
+++ b/tests/test_block_header.c
@@ -237,7 +237,6 @@ test3(void)
int
main(void)
{
- lzma_init();
succeed(lzma_lzma_preset(&opt_lzma, 1));
test1();
diff --git a/tests/test_check.c b/tests/test_check.c
index 40715c6a..cb6b8ec1 100644
--- a/tests/test_check.c
+++ b/tests/test_check.c
@@ -81,8 +81,6 @@ test_crc64(void)
int
main(void)
{
- lzma_init_check();
-
bool error = false;
error |= test_crc32();
diff --git a/tests/test_filter_flags.c b/tests/test_filter_flags.c
index 490864f8..dd4f56ac 100644
--- a/tests/test_filter_flags.c
+++ b/tests/test_filter_flags.c
@@ -269,8 +269,6 @@ test_lzma(void)
int
main(void)
{
- lzma_init();
-
#if defined(HAVE_ENCODER_SUBBLOCK) && defined(HAVE_DECODER_SUBBLOCK)
test_subblock();
#endif
diff --git a/tests/test_index.c b/tests/test_index.c
index 46e1d871..8a2cb266 100644
--- a/tests/test_index.c
+++ b/tests/test_index.c
@@ -489,8 +489,6 @@ test_corrupt(void)
int
main(void)
{
- lzma_init();
-
test_equal();
test_overflow();
diff --git a/tests/test_stream_flags.c b/tests/test_stream_flags.c
index 2ff216db..a82a20b5 100644
--- a/tests/test_stream_flags.c
+++ b/tests/test_stream_flags.c
@@ -171,8 +171,6 @@ test_decode_invalid(void)
int
main(void)
{
- lzma_init();
-
// Valid headers
known_flags.backward_size = 1024;
for (lzma_check check = LZMA_CHECK_NONE;
diff --git a/tests/tests.h b/tests/tests.h
index 49994727..7b7b3d40 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -38,7 +38,7 @@
static inline const char *
lzma_ret_sym(lzma_ret ret)
{
- if ((unsigned)(ret) > LZMA_PROG_ERROR)
+ if ((unsigned int)(ret) > LZMA_PROG_ERROR)
return "UNKNOWN_ERROR";
static const char *msgs[] = {