summaryrefslogtreecommitdiff
path: root/test/charset.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/charset.c')
-rw-r--r--test/charset.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/charset.c b/test/charset.c
deleted file mode 100644
index a793e7e..0000000
--- a/test/charset.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "charset/charset.h"
-
-#include "testutils.h"
-
-static void *myrealloc(void *ptr, size_t len, void *pw)
-{
- UNUSED(pw);
-
- return realloc(ptr, len);
-}
-
-int main(int argc, char **argv)
-{
- if (argc != 2) {
- printf("Usage: %s <filename>\n", argv[0]);
- return 1;
- }
-
- assert(parserutils_charset_initialise(argv[1], myrealloc, NULL) ==
- PARSERUTILS_OK);
-
- assert (parserutils_charset_finalise(myrealloc, NULL) ==
- PARSERUTILS_OK);
-
- printf("PASS\n");
-
- return 0;
-}