From 91937d970d9b193fc40e70dea9570792639474d5 Mon Sep 17 00:00:00 2001 From: Claus Fischer Date: Wed, 29 Nov 2017 14:51:21 +0100 Subject: [PATCH] testit: Test new rl_uninitialize() and load/store history Signed-off-by: Claus Fischer Signed-off-by: Joachim Nilsson --- examples/testit.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/testit.c b/examples/testit.c index 80295c2..1aec68b 100644 --- a/examples/testit.c +++ b/examples/testit.c @@ -45,6 +45,8 @@ int main(int argc, char *argv[] __attribute__ ((unused))) int doit; char *prompt, *p; + read_history(".testit_history"); + doit = argc == 1; if ((prompt = getenv("TESTPROMPT")) == NULL) prompt = "testit> "; @@ -63,6 +65,9 @@ int main(int argc, char *argv[] __attribute__ ((unused))) free(p); } + write_history(".testit_history"); + rl_uninitialize(); + return 0; }