mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
68de588f21
Basically: > for f in **/*.lua; do vim '+set sw=4' '+norm gg=G' '+wq' "$f"; done
24 lines
681 B
Lua
24 lines
681 B
Lua
--- Tests for spawn + signals
|
|
|
|
local runner = require("_runner")
|
|
|
|
local done = false
|
|
|
|
local function exit_callback(cause, signal)
|
|
assert(cause == "signal", cause)
|
|
assert(signal == awesome.unix_signal.SIGKILL, signal)
|
|
done = true
|
|
end
|
|
local pid = awesome.spawn({"/bin/sh", "-c", "sleep 60"}, false, false,
|
|
false, false, exit_callback)
|
|
awesome.kill(pid, awesome.unix_signal.SIGKILL)
|
|
|
|
runner.run_steps({
|
|
function()
|
|
if done then
|
|
return true
|
|
end
|
|
end
|
|
})
|
|
|
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|