glsl/glcpp: Add testing for null directives with spaces and comments
authorCarl Worth <cworth@cworth.org>
Wed, 2 Jul 2014 01:00:41 +0000 (18:00 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 7 Aug 2014 23:08:29 +0000 (16:08 -0700)
This new "make check" test stresses out the support from the last two commits,
(to esnure that '#' is correctly interpreted as the null directives,
regardless of any whitespace or comments on the same line).

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glcpp/tests/140-null-directive.c [new file with mode: 0644]
src/glsl/glcpp/tests/140-null-directive.c.expected [new file with mode: 0644]

diff --git a/src/glsl/glcpp/tests/140-null-directive.c b/src/glsl/glcpp/tests/140-null-directive.c
new file mode 100644 (file)
index 0000000..1dcb26e
--- /dev/null
@@ -0,0 +1,9 @@
+/* GLSL accepts a null directive. Let's test that in several variations: */
+#
+        #        
+/*....*/#/*....*/
+ /*..*/ # /*..*/ 
+#//...
+        #   //...
+/*....*/#/**///..
+ /*..*/ # /**/ //
diff --git a/src/glsl/glcpp/tests/140-null-directive.c.expected b/src/glsl/glcpp/tests/140-null-directive.c.expected
new file mode 100644 (file)
index 0000000..fa103f6
--- /dev/null
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+