Skip to content

Commit

Permalink
tests: process: test for non-nil pid
Browse files Browse the repository at this point in the history
pid should not be nil. Don't make assumptions about the type but it
should be a number for now.
  • Loading branch information
philips committed May 26, 2012
1 parent 3a57311 commit 17fda17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test-process.lua
Expand Up @@ -23,6 +23,8 @@ end

test()

assert(process.pid ~= nil)

process:on('exit', function()
assert(environmentTestResult == true)
end)

0 comments on commit 17fda17

Please sign in to comment.