aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-19 13:02:44 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-19 13:06:12 +0200
commitd01a1ff0348174f91bb2d3ba53145cc2c9f50a7f (patch)
tree851cdb15a533d8b6da5bae12368a13d05f783e8f /tests
parentbd1013f16a40be5458c0a8cd95625e28309295f1 (diff)
downloadliberty-d01a1ff0348174f91bb2d3ba53145cc2c9f50a7f.tar.gz
liberty-d01a1ff0348174f91bb2d3ba53145cc2c9f50a7f.tar.xz
liberty-d01a1ff0348174f91bb2d3ba53145cc2c9f50a7f.zip
Turn liberty-tui into a terminal/X11 hybrid
Importing code from nncmpp, adjusting it to work with hex as well.
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzz.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/fuzz.c b/tests/fuzz.c
index 74db020..1e3c995 100644
--- a/tests/fuzz.c
+++ b/tests/fuzz.c
@@ -32,13 +32,6 @@
#define LIBERTY_WANT_PROTO_MPD
#include "../liberty.c"
-#include "../liberty-tui.c"
-
-static bool
-app_is_character_in_locale (ucs4_t ch)
-{
- return ch < 128;
-}
// --- UTF-8 -------------------------------------------------------------------
@@ -211,19 +204,6 @@ test_config_item_parse (const uint8_t *data, size_t size)
config_item_destroy (item);
}
-// --- TUI ---------------------------------------------------------------------
-
-static void
-test_attrs_decode (const uint8_t *data, size_t size)
-{
- struct str wrap = str_make ();
- str_append_data (&wrap, data, size);
-
- attrs_decode (wrap.str);
-
- str_free (&wrap);
-}
-
// --- MPD ---------------------------------------------------------------------
static void
@@ -266,7 +246,6 @@ LLVMFuzzerInitialize (int *argcp, char ***argvp)
REGISTER (fcgi_parser_push)
REGISTER (fcgi_nv_parser_push)
REGISTER (config_item_parse)
- REGISTER (attrs_decode)
REGISTER (mpd_client_process_input)
char **argv = *argvp, *option = "-test=", *name = NULL;