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

Author: Carl Worth <[email protected]>
Date:   Mon Aug 23 08:54:06 2010 -0700

glcpp: Add test for the #error directive.

This directive is already implemented nicely, but wasn't previously tested.
It will be convenient to use this directive in further tests that rely
on error messages, (such as ensuring that #line correctly sets the line
number in the error message).

---

 src/glsl/glcpp/tests/090-hash-error.c          |    1 +
 src/glsl/glcpp/tests/090-hash-error.c.expected |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/glsl/glcpp/tests/090-hash-error.c 
b/src/glsl/glcpp/tests/090-hash-error.c
new file mode 100644
index 0000000..d19bb7f
--- /dev/null
+++ b/src/glsl/glcpp/tests/090-hash-error.c
@@ -0,0 +1 @@
+#error human error
diff --git a/src/glsl/glcpp/tests/090-hash-error.c.expected 
b/src/glsl/glcpp/tests/090-hash-error.c.expected
new file mode 100644
index 0000000..f2f1fbe
--- /dev/null
+++ b/src/glsl/glcpp/tests/090-hash-error.c.expected
@@ -0,0 +1,3 @@
+0:1(2): preprocessor error: #error human error
+
+

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to