Fail when another window manager is already running

This commit is contained in:
Thibault Jouan
2015-04-12 23:46:34 +00:00
parent c3e1f9639a
commit 10591d0646
8 changed files with 47 additions and 10 deletions

View File

@@ -14,3 +14,10 @@ Headless.new.start
After do |scenario|
@process and @process.terminate
end
Around '@other_wm_running' do |scenario, block|
@other_wm = ChildProcess.build('twm')
@other_wm.start
block.call
@other_wm.stop
end