ref: 51a3860db07a5dd3072acfbdfddd8b330d6e5951
parent: 2a5f32b8f028d8cfbc221bbccd6624f323de6825
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Mar 9 03:21:00 EST 2017
[tests] Fix error/chktest.sh The end of pattern is a dot at the beginning of line, but ^ was missed in the regular expression.
--- a/tests/error/chktest.sh
+++ b/tests/error/chktest.sh
@@ -15,7 +15,7 @@
printf "%s" $state
scc $CFLAGS -w -c "$i" 2> $err
- echo '/^PATTERN/+;/\./-p' | ed -s $i > $chk
+ echo '/^PATTERN/+;/^\./-p' | ed -s $i > $chk
diff -c $chk $err >> test.log && echo [OK] || echo [FAILED]
rm -f *.o
done
--- a/tests/error/scc-tests.lst
+++ b/tests/error/scc-tests.lst
@@ -16,3 +16,4 @@
0016-arrayinitsize.c [TODO]
0017-duplicatefunc.c
0018-voidparam.c [TODO]
+0019-kr_names.c