Fix tests/mhparam/test-mhparam
authorm@mmmmarascio.xyz <m@mmmmarascio.xyz>
Fri, 5 Aug 2016 02:15:42 +0000 (19:15 -0700)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sat, 6 Aug 2016 12:21:03 +0000 (14:21 +0200)
The behaviour of readconfig() has changed. This causes
another behaviour for mhparam.

sbr/readconfig.c
test/tests/mhparam/test-mhparam

index 45e1cb6..6253c23 100644 (file)
@@ -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:
index 7f21be3..4b95500 100755 (executable)
@@ -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' <<!
 mhparam: `cat test-temp-dir`/.mmh/profile2 is poorly formatted
+$VISUAL
 !
+unset VISUAL
 
 
 exit