diff options
Diffstat (limited to 'test/xkb.c')
-rw-r--r-- | test/xkb.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/test/xkb.c b/test/xkb.c index 421153cd1..955e72dff 100644 --- a/test/xkb.c +++ b/test/xkb.c @@ -55,12 +55,12 @@ * * Result: RMLVO defaults are the same as obtained. */ -static void xkb_get_rules_test(void) +static void +xkb_get_rules_test(void) { - XkbRMLVOSet rmlvo = { NULL}; + XkbRMLVOSet rmlvo = { NULL }; XkbGetRulesDflts(&rmlvo); - assert(rmlvo.rules); assert(rmlvo.model); assert(rmlvo.layout); @@ -79,7 +79,8 @@ static void xkb_get_rules_test(void) * Compare obtained ruleset with the built-in defaults. * Result: RMLVO defaults are the same as obtained. */ -static void xkb_set_rules_test(void) +static void +xkb_set_rules_test(void) { XkbRMLVOSet rmlvo = { .rules = "test-rules", @@ -107,7 +108,6 @@ static void xkb_set_rules_test(void) assert(strcmp(rmlvo.options, rmlvo_new.options) == 0); } - /** * Get the default RMLVO set. * Set the default RMLVO set. @@ -116,7 +116,8 @@ static void xkb_set_rules_test(void) * * Result: RMLVO set obtained is the same as previously set. */ -static void xkb_set_get_rules_test(void) +static void +xkb_set_get_rules_test(void) { /* This test failed before XkbGetRulesDftlts changed to strdup. We test this twice because the first time using XkbGetRulesDflts we obtain @@ -158,8 +159,8 @@ static void xkb_set_get_rules_test(void) assert(strcmp(rmlvo.options, rmlvo_backup.options) == 0); } - -int main(int argc, char** argv) +int +main(int argc, char **argv) { xkb_set_get_rules_test(); xkb_get_rules_test(); |