tests: run alloc test on all platforms

Currently, alloc/2,3 tests functionality that only is needed for linux
(for seccomp mode). Run the tests on other plaforms like freebsd, so we
can catch any bugs.
This commit is contained in:
Michael Santos
2014-07-18 12:24:30 -04:00
parent 7a1c17bfd6
commit 9149b4c1d4

View File

@@ -429,7 +429,7 @@ eof(#state{pid = Drv}) ->
?_assertEqual(ok, Reply2)
].
alloc(#state{os = {unix,linux}, pid = Drv}) ->
alloc(#state{os = {unix,_}, pid = Drv}) ->
{ok, Buf, Cstruct} = alcove:alloc(Drv,
[<<1,2,3,4,5,6,7,8,9,10>>,
{ptr, 11},