summaryrefslogtreecommitdiff
path: root/tests/fstree_fuzz.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-05 15:53:21 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-06 22:08:36 +0100
commitb950412ca3a91aa37349cf51ebe98cc84767d448 (patch)
treee3bb062114d019984321a5a21b29818c88c36795 /tests/fstree_fuzz.c
parent3fc6bf24b5cc071fc323f08ece541e37578f6369 (diff)
Cleanup: add some structure to the test directory
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/fstree_fuzz.c')
-rw-r--r--tests/fstree_fuzz.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/fstree_fuzz.c b/tests/fstree_fuzz.c
deleted file mode 100644
index ebc8c45..0000000
--- a/tests/fstree_fuzz.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
-/*
- * fstree_fuzz.c
- *
- * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
- */
-#include "config.h"
-
-#include "fstree.h"
-
-#include <stdlib.h>
-#include <stdio.h>
-
-int main(int argc, char **argv)
-{
- int ret = EXIT_FAILURE;
- fstree_t fs;
-
- if (argc != 2) {
- fputs("Usage: fstree_fuzz <input_file>\n", stderr);
- return EXIT_FAILURE;
- }
-
- if (fstree_init(&fs, NULL))
- return EXIT_FAILURE;
-
- if (fstree_from_file(&fs, argv[1], NULL))
- goto out_fs;
-
- ret = EXIT_SUCCESS;
-out_fs:
- fstree_cleanup(&fs);
- return ret;
-}