summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-06-11 12:34:41 (GMT)
committer Daniel Silverstone <dsilvers@digital-scurf.org>2017-06-11 12:34:41 (GMT)
commit0d8bf0efca755ba4446a213d500975de65098dd0 (patch)
tree1ae961d0902039ea5f29f77511232ff6e67340ec
parent768988d88470ffc1c64c35d6f9d3c37a9a6f75da (diff)
downloadlibnslog-0d8bf0efca755ba4446a213d500975de65098dd0.tar.gz
libnslog-0d8bf0efca755ba4446a213d500975de65098dd0.tar.bz2
Remove redundant parse test
-rw-r--r--test/Makefile2
-rw-r--r--test/parse.c25
2 files changed, 1 insertions, 26 deletions
diff --git a/test/Makefile b/test/Makefile
index 5ebac01..36d5092 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,3 +1,3 @@
-DIR_TEST_ITEMS := testrunner:testmain.c;basictests.c parse:parse.c
+DIR_TEST_ITEMS := testrunner:testmain.c;basictests.c
include $(NSBUILD)/Makefile.subdir
diff --git a/test/parse.c b/test/parse.c
deleted file mode 100644
index 9fca97b..0000000
--- a/test/parse.c
+++ b/dev/null
@@ -1,25 +0,0 @@
-#include "nslog/nslog.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-
-int main(int argc, char **argv)
-{
- if (argc != 2) {
- fprintf(stderr, "usage: parse 'filtertext'\n");
- return 1;
- }
- nslog_filter_t *filt;
- nslog_error err;
-
- err = nslog_filter_from_text(argv[1], &filt);
- if (err != NSLOG_NO_ERROR) {
- fprintf(stderr, "Unable to parse.\n");
- return 2;
- }
- char *ct = nslog_filter_sprintf(filt);
- filt = nslog_filter_unref(filt);
- printf("%s\n", ct);
- free(ct);
- return 0;
-}