# HG changeset patch # User David A. Holland # Date 1364706783 14400 # Node ID 0cd5a1d55ed665d8dbe91743e35c1a9da8f85b75 # Parent a3dd0db23b0c1007ae43b7f0f004173515b472db rename joerg's tests to not conflict. diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/Makefile --- a/tests/Makefile Sun Mar 31 06:45:44 2013 +0200 +++ b/tests/Makefile Sun Mar 31 01:13:03 2013 -0400 @@ -11,7 +11,7 @@ TRADCPP_OBJDIR!= ${MAKE} -C .. -V .OBJDIR TRADCPP= ${TRADCPP_OBJDIR}/tradcpp -TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12 t13 t14 t15 t16 +TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12 t16 t17 t18 t19 .for T in $(TESTS) run-tests: $(T).diff diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t13.c --- a/tests/t13.c Sun Mar 31 06:45:44 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -#define a() x -a() -a () -#define b(p) p -x/**/b(1)/**/x -x/**/b (1)/**/x -x/**/b()/**/x -#define c(p,q) p/**/q -x/**/c(1,2)/**/x -x/**/c(1)/**/x -x/**/c()/**/x diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t13.good --- a/tests/t13.good Sun Mar 31 06:45:44 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -x -x -x1x -x1x -xx -x12x -t13.c:10:1: Wrong number of arguments for macro c; found 1, expected 2 -x1x -t13.c:11:1: Wrong number of arguments for macro c; found 0, expected 2 -xx -FAILED diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t14.c --- a/tests/t14.c Sun Mar 31 06:45:44 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -#define file "subdir/test.h" -#include file diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t14.good --- a/tests/t14.good Sun Mar 31 06:45:44 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -hello diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t15.c --- a/tests/t15.c Sun Mar 31 06:45:44 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -#if FOO /* ignore me */ -#endif diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t15.good diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t16.c --- a/tests/t16.c Sun Mar 31 06:45:44 2013 +0200 +++ b/tests/t16.c Sun Mar 31 01:13:03 2013 -0400 @@ -1,3 +1,11 @@ -#define foo /* comment continues - into the next line */ baz -baz +#define a() x +a() +a () +#define b(p) p +x/**/b(1)/**/x +x/**/b (1)/**/x +x/**/b()/**/x +#define c(p,q) p/**/q +x/**/c(1,2)/**/x +x/**/c(1)/**/x +x/**/c()/**/x diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t16.good --- a/tests/t16.good Sun Mar 31 06:45:44 2013 +0200 +++ b/tests/t16.good Sun Mar 31 01:13:03 2013 -0400 @@ -1,1 +1,11 @@ -baz +x +x +x1x +x1x +xx +x12x +t16.c:10:1: Wrong number of arguments for macro c; found 1, expected 2 +x1x +t16.c:11:1: Wrong number of arguments for macro c; found 0, expected 2 +xx +FAILED diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t17.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/t17.c Sun Mar 31 01:13:03 2013 -0400 @@ -0,0 +1,2 @@ +#define file "subdir/test.h" +#include file diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t17.good --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/t17.good Sun Mar 31 01:13:03 2013 -0400 @@ -0,0 +1,1 @@ +hello diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t18.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/t18.c Sun Mar 31 01:13:03 2013 -0400 @@ -0,0 +1,2 @@ +#if FOO /* ignore me */ +#endif diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t18.good diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t19.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/t19.c Sun Mar 31 01:13:03 2013 -0400 @@ -0,0 +1,3 @@ +#define foo /* comment continues + into the next line */ baz +baz diff -r a3dd0db23b0c -r 0cd5a1d55ed6 tests/t19.good --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/t19.good Sun Mar 31 01:13:03 2013 -0400 @@ -0,0 +1,1 @@ +baz