Skip to content

Instantly share code, notes, and snippets.

@rphillips
Created March 23, 2015 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rphillips/7ef5e8e8e7f9603203a7 to your computer and use it in GitHub Desktop.
Save rphillips/7ef5e8e8e7f9603203a7 to your computer and use it in GitHub Desktop.
local spawn = require('childprocess').spawn
local los = require('los')
local uv = require('uv')
require('tap')(function(test)
test('invalid command verify exit callback', function(expect)
local child, onExit
function onExit(err)
p('exit', err)
assert(err)
end
child = spawn('sdjfksjksjfksjfsk')
child:on('exit', expect(onExit))
end)
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment