Mesa (master): glcpp: Add "make check" test for comment-parsing bug

Carl Worth cworth at kemper.freedesktop.org
Fri Jan 31 18:04:41 UTC 2014


Module: Mesa
Branch: master
Commit: 2dc93bd5d19fa389b314eddd6dd8a62fae2be1be
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2dc93bd5d19fa389b314eddd6dd8a62fae2be1be

Author: Carl Worth <cworth at cworth.org>
Date:   Wed Jan 29 14:19:04 2014 -0800

glcpp: Add "make check" test for comment-parsing bug

This is the innocent-looking but killer test case to verify the bug fixed in
the preceding commit.

Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>

---

 src/glsl/glcpp/tests/121-comment-bug-72686.c          |    2 ++
 src/glsl/glcpp/tests/121-comment-bug-72686.c.expected |    3 +++
 2 files changed, 5 insertions(+)

diff --git a/src/glsl/glcpp/tests/121-comment-bug-72686.c b/src/glsl/glcpp/tests/121-comment-bug-72686.c
new file mode 100644
index 0000000..67ebe73
--- /dev/null
+++ b/src/glsl/glcpp/tests/121-comment-bug-72686.c
@@ -0,0 +1,2 @@
+/*
+ */ //
diff --git a/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected b/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected
new file mode 100644
index 0000000..402a763
--- /dev/null
+++ b/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected
@@ -0,0 +1,3 @@
+  
+
+




More information about the mesa-commit mailing list