Test blocking worker event handling reliability

This commit is contained in:
Thibault Jouan 2015-04-29 02:52:35 +00:00
parent 2731f9b3a3
commit d24f25bbbe
2 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,10 @@ When /^I press the ([^ ]+) keys? (\d+) times$/ do |keys, times|
times.to_i.times { x_key keys }
end
When /^I quickly press the ([^ ]+) keys? (\d+) times$/ do |keys, times|
x_key [keys] * times.to_i, delay: 0
end
When /^a window requests to be mapped$/ do
x_client.map.sync
end

View File

@ -10,6 +10,6 @@ Feature: blocking worker
key(:f) { puts 'testing_worker_read' }
"""
And uhwm is running with options -v -w block
When I press the alt+f key 3 times
When I quickly press the alt+f key 1024 times
And I quit uhwm
Then the output must match /(testing_worker_read)/ exactly 3 times
Then the output must match /(testing_worker_read)/ exactly 1024 times