[hackers] [scc] [tests] Fix error/chktest.sh || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 9 Mar 2017 08:24:42 +0100 (CET)

commit f3b6f7e7ad879702f61fd7d892e27ef7c4c082a8
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Mar 9 08:21:00 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Mar 9 08:21:00 2017 +0100

    [tests] Fix error/chktest.sh
    
    The end of pattern is a dot at the beginning of line, but ^ was missed in
    the regular expression.

diff --git a/tests/error/chktest.sh b/tests/error/chktest.sh
index e92cbb2..1922c6e 100755
--- a/tests/error/chktest.sh
+++ b/tests/error/chktest.sh
_AT_@ -15,7 +15,7 @@ do
         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
diff --git a/tests/error/scc-tests.lst b/tests/error/scc-tests.lst
index b96f72c..4866341 100644
--- a/tests/error/scc-tests.lst
+++ b/tests/error/scc-tests.lst
_AT_@ -16,3 +16,4 @@
 0016-arrayinitsize.c [TODO]
 0017-duplicatefunc.c
 0018-voidparam.c [TODO]
+0019-kr_names.c
Received on Thu Mar 09 2017 - 08:24:42 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 09 2017 - 08:36:18 CET