mirror of
https://github.com/uselessd/alcove.git
synced 2026-04-15 09:15:19 +00:00
tests: fix warning
This commit is contained in:
@@ -55,7 +55,13 @@ start() ->
|
||||
Port = alcove_drv:start([{exec, "sudo"}]),
|
||||
case os:type() of
|
||||
{unix,linux} = OS ->
|
||||
Flags = alcove:define(Port, clone, [newns,newpid,newuts,newnet,newipc]),
|
||||
Flags = alcove:define(Port, clone, [
|
||||
newipc,
|
||||
newnet,
|
||||
newns,
|
||||
newpid,
|
||||
newuts
|
||||
]),
|
||||
{ok, Child} = alcove:clone(Port, Flags),
|
||||
{OS, Port, Child};
|
||||
{unix,_} = OS ->
|
||||
@@ -218,7 +224,7 @@ prctl({linux, Port, _Child}) ->
|
||||
?_assertMatch({ok,0,9,0,0,0}, Reply3),
|
||||
?_assertMatch({ok,0,<<9,0,0,0>>,0,0,0}, Reply4)
|
||||
];
|
||||
prctl({_, Port, Child}) ->
|
||||
prctl({_, _Port, _Child}) ->
|
||||
?_assertEqual(ok,ok).
|
||||
|
||||
execvp({_, Port, Child}) ->
|
||||
|
||||
Reference in New Issue
Block a user