talloc: use the system pytalloc-util for python3 as well
[sfrench/samba-autobuild/.git] / lib / compression / testsuite.c
index 8c3c66a046d7dd0852afaff2aeb3adde2999e60d..e39ba0482a89a8521a1bca27bfd3c86aa70107d8 100644 (file)
@@ -20,8 +20,8 @@
 
 #include "includes.h"
 #include "torture/torture.h"
+#include "torture/local/proto.h"
 #include "talloc.h"
-#include "mszip.h"
 #include "lzxpress.h"
 
 /*
@@ -30,7 +30,6 @@
 static bool test_lzxpress(struct torture_context *test)
 {
        TALLOC_CTX *tmp_ctx = talloc_new(test);
-       uint8_t *data;
        const char *fixed_data = "this is a test. and this is a test too";
        const uint8_t fixed_out[] = { 0x00, 0x20, 0x00, 0x04, 0x74, 0x68, 0x69, 0x73,
                                      0x20, 0x10, 0x00, 0x61, 0x20, 0x74, 0x65, 0x73,
@@ -40,7 +39,6 @@ static bool test_lzxpress(struct torture_context *test)
        ssize_t c_size;
        uint8_t *out, *out2;
 
-       data = talloc_size(tmp_ctx, 1023);
        out  = talloc_size(tmp_ctx, 2048);
        memset(out, 0x42, talloc_get_size(out));
 
@@ -69,7 +67,7 @@ static bool test_lzxpress(struct torture_context *test)
 
 struct torture_suite *torture_local_compression(TALLOC_CTX *mem_ctx)
 {
-       struct torture_suite *suite = torture_suite_create(mem_ctx, "COMPRESSION");
+       struct torture_suite *suite = torture_suite_create(mem_ctx, "compression");
 
        torture_suite_add_simple_test(suite, "lzxpress", test_lzxpress);