changeset 106:ecec7c16e3ba

add a couple more tests, taken from the 2010 tech-toolchain thread (one was from der Mouse, the other prompted by something he said)
author David A. Holland
date Tue, 11 Jun 2013 11:35:27 -0400
parents 600f36cd7353
children 33954a07d013
files CHANGES tests/Makefile tests/t25.c tests/t25.good tests/t26.c tests/t26.good
diffstat 6 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES	Tue Jun 11 11:24:48 2013 -0400
+++ b/CHANGES	Tue Jun 11 11:35:27 2013 -0400
@@ -3,6 +3,8 @@
    - pass -Wunused (partly from Baptiste Daroussin)
    - allow absolute paths in include files (partly from Baptiste Daroussin)
    - don't use getprogname() in the name of portability
+   - add tests arising from December 2010 tech-toolchain thread (one
+     from der Mouse, one of mine)
 
 release 0.1 (20130610)
    - first release, works with at least some imake templates
--- a/tests/Makefile	Tue Jun 11 11:24:48 2013 -0400
+++ b/tests/Makefile	Tue Jun 11 11:35:27 2013 -0400
@@ -3,7 +3,7 @@
 
 TESTS=\
 	t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12 t13 t14 t15 t16 \
-	t17 t18 t19 t20 t21 t22 t23 t24
+	t17 t18 t19 t20 t21 t22 t23 t24 t25 t26
 
 all: run-tests .WAIT show-diffs
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t25.c	Tue Jun 11 11:35:27 2013 -0400
@@ -0,0 +1,4 @@
+#define FOO foo /*
+#undef FOO
+#define FOO bar */
+FOO
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t25.good	Tue Jun 11 11:35:27 2013 -0400
@@ -0,0 +1,1 @@
+foo 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t26.c	Tue Jun 11 11:35:27 2013 -0400
@@ -0,0 +1,2 @@
+#define FOO foo
+"FOO"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t26.good	Tue Jun 11 11:35:27 2013 -0400
@@ -0,0 +1,1 @@
+"foo"