diff options
| author | Manuel Stoeckl <code@mstoeckl.com> | 2019-04-13 18:33:06 -0400 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2019-05-02 17:42:59 +0000 |
| commit | 6db761d16229084e576848967402d30b656e2dbf (patch) | |
| tree | 50cc136688ac2fe8475171c307f0c522a7e3a847 /tests/data/bad-identifier-interface.xml | |
| parent | scanner: error when element names will not compile (diff) | |
| download | wayland-6db761d16229084e576848967402d30b656e2dbf.tar wayland-6db761d16229084e576848967402d30b656e2dbf.tar.gz wayland-6db761d16229084e576848967402d30b656e2dbf.tar.bz2 wayland-6db761d16229084e576848967402d30b656e2dbf.tar.lz wayland-6db761d16229084e576848967402d30b656e2dbf.tar.xz wayland-6db761d16229084e576848967402d30b656e2dbf.tar.zst wayland-6db761d16229084e576848967402d30b656e2dbf.zip | |
tests: Verify that wayland_scanner can catch bad identifiers
The test runs wayland_scanner on a set of XML protocol files which
have malformed element names, and confirms that an error is produced
and indicates the correct line.
Copyright notifications are not included in the test files, as
they are not code; of course, the project license still applies.
Signed-off-by: Manuel Stoeckl <code@mstoeckl.com>
Diffstat (limited to 'tests/data/bad-identifier-interface.xml')
| -rw-r--r-- | tests/data/bad-identifier-interface.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/data/bad-identifier-interface.xml b/tests/data/bad-identifier-interface.xml new file mode 100644 index 0000000..17404c5 --- /dev/null +++ b/tests/data/bad-identifier-interface.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<protocol name="the_protocol"> + <interface name="inter face" version="1"> + <description summary="the summary"> + </description> + <event name="the_event"/> + </interface> +</protocol> |
