libxkbcommon/test
Ran Benita 06d7803a6d state: fix mod_names_are_active
This function was always returning -1.
Adding a test, we see that test/state.c treat the is_active functions as
returning booleans, which would treat -1 as success, so we test for > 0
instead (most users would probably get this wrong as well...).
Also update the documentation for the are_active functions, and add a
ATTR_NULL_SENTINEL for gcc __attribute__((sentinel)).

Signed-off-by: Ran Benita <ran234@gmail.com>
2012-09-02 19:17:09 +03:00
..
data compat: ignore "group" (compatibility) statements 2012-09-01 10:59:47 +03:00
.gitignore Fix warning 2012-08-09 01:55:30 +03:00
common.c Add xkb_log_level enum rather than using syslog 2012-08-08 16:23:31 +02:00
context.c test: Add extremely rudimentary include path test 2012-08-08 16:23:30 +02:00
filecomp.c test: Minimise includes 2012-08-08 16:23:30 +02:00
interactive.c test: Use test_compile_*() in interactive 2012-08-08 13:30:24 +02:00
keyseq.c keyseq: use our own keysyms 2012-08-07 11:09:42 +03:00
keysym.c test: Minimise includes 2012-08-08 16:23:30 +02:00
log.c Add xkb_log_level enum rather than using syslog 2012-08-08 16:23:31 +02:00
rules-file.c Organize xkbcomp/ header files 2012-09-01 10:58:10 +03:00
rulescomp.c rulescomp: remove bad failtests 2012-09-01 10:58:10 +03:00
state.c state: fix mod_names_are_active 2012-09-02 19:17:09 +03:00
stringcomp.c test/stringcomp: Perform full round-trip test 2012-08-08 16:23:30 +02:00
test.h utils: add/replace string equality macros 2012-07-27 00:27:24 +03:00