mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
7 lines
257 B
Text
7 lines
257 B
Text
local process = require("@lune/process")
|
|
|
|
-- Executing a non existent command as a child process
|
|
-- should not panic, but should error
|
|
|
|
local success = pcall(process.exec, "someProgramThatDoesNotExist")
|
|
assert(not success, "Spawned a non-existent program")
|