From: m@mmmmarascio.xyz Date: Fri, 5 Aug 2016 02:15:42 +0000 (-0700) Subject: Fix tests/mhparam/test-mhparam X-Git-Tag: mmh-0.3~16 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=6fa7bb89ded1ee5b45d8c0d706db974e92bd546f Fix tests/mhparam/test-mhparam The behaviour of readconfig() has changed. This causes another behaviour for mhparam. --- 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' <