test/state: move wrongly-placed assert

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2016-10-22 20:13:11 +03:00
parent fe81dcbd2f
commit 914c060a1d
1 changed files with 1 additions and 2 deletions

View File

@ -445,6 +445,7 @@ test_consume(struct xkb_keymap *keymap)
/* More complicated - CTRL+ALT */
state = xkb_state_new(keymap);
assert(state);
mask = xkb_state_key_get_consumed_mods(state, KEY_F1 + EVDEV_OFFSET);
assert(mask == ((1U << shift) | (1U << alt) | (1U << ctrl) | (1U << mod5)));
@ -458,8 +459,6 @@ test_consume(struct xkb_keymap *keymap)
mask = xkb_state_key_get_consumed_mods(state, KEY_F1 + EVDEV_OFFSET);
assert(mask == ((1U << shift) | (1U << alt) | (1U << ctrl) | (1U << mod5)));
assert(state);
xkb_state_unref(state);
}