mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
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>
This commit is contained in:
parent
6ce4bbb3dd
commit
6db761d162
9 changed files with 95 additions and 0 deletions
8
tests/data/bad-identifier-interface.xml
Normal file
8
tests/data/bad-identifier-interface.xml
Normal file
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue