mirror of
https://github.com/lune-org/lune.git
synced 2024-12-13 21:40:40 +00:00
8 lines
258 B
Text
8 lines
258 B
Text
|
local process = require("@lune/process")
|
||
|
|
||
|
-- Spawning a child process for a non-existent
|
||
|
-- program should not panic, but should error
|
||
|
|
||
|
local success = pcall(process.spawn, "someProgramThatDoesNotExist")
|
||
|
assert(not success, "Spawned a non-existent program")
|