diff options
Diffstat (limited to 'test/csdetect.c')
-rw-r--r-- | test/csdetect.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/csdetect.c b/test/csdetect.c index d02efcb..de94852 100644 --- a/test/csdetect.c +++ b/test/csdetect.c @@ -25,13 +25,6 @@ typedef struct line_ctx { static bool handle_line(const char *data, size_t datalen, void *pw); static void run_test(const uint8_t *data, size_t len, char *expected); -static void *myrealloc(void *ptr, size_t len, void *pw) -{ - UNUSED(pw); - - return realloc(ptr, len); -} - int main(int argc, char **argv) { line_ctx ctx; @@ -41,8 +34,6 @@ int main(int argc, char **argv) return 1; } - assert(hubbub_initialise(argv[1], myrealloc, NULL) == HUBBUB_OK); - ctx.buflen = parse_filesize(argv[2]); if (ctx.buflen == 0) return 1; @@ -70,8 +61,6 @@ int main(int argc, char **argv) free(ctx.buf); - assert(hubbub_finalise(myrealloc, NULL) == HUBBUB_OK); - printf("PASS\n"); return 0; |