From 6fa7bb89ded1ee5b45d8c0d706db974e92bd546f Mon Sep 17 00:00:00 2001 From: "m@mmmmarascio.xyz" Date: Thu, 4 Aug 2016 19:15:42 -0700 Subject: [PATCH] Fix tests/mhparam/test-mhparam The behaviour of readconfig() has changed. This causes another behaviour for mhparam. --- sbr/readconfig.c | 2 +- test/tests/mhparam/test-mhparam | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sbr/readconfig.c b/sbr/readconfig.c index 45e1cb6..6253c23 100644 --- a/sbr/readconfig.c +++ b/sbr/readconfig.c @@ -72,7 +72,7 @@ readconfig(struct node **npp, FILE *ib, char *file, int ctx) } continue; case FMTERR2: - advise(NULL, "%s is poorly formated", file); + advise(NULL, "%s is poorly formatted", file); state = FLD2; continue; case BODY2: diff --git a/test/tests/mhparam/test-mhparam b/test/tests/mhparam/test-mhparam index 7f21be3..4b95500 100755 --- a/test/tests/mhparam/test-mhparam +++ b/test/tests/mhparam/test-mhparam @@ -134,9 +134,12 @@ alice@example.org, bob@example.net, charly@example.comp # check with text file that does not end with newline # in mmh this is invalid printf 'Editor: emacs' >>"$MMHP" +export VISUAL=ed runandcheck 'mhparam -nocomponent editor' <