mirror of
https://github.com/uselessd/alcove.git
synced 2026-04-16 09:45:15 +00:00
tests: eof tests hangs on some systems
Clean up after the forkchain test by forcing the top level process to exit. On some systems, the eof test would hang while forcing the process to exit. Not sure why, this cleanup just covers up the problem.
This commit is contained in:
@@ -399,6 +399,8 @@ forkchain(#state{pid = Drv}) ->
|
||||
|
||||
Pid = alcove:getpid(Drv, [Child0, Child1, Child2, Child3, Child4]),
|
||||
|
||||
alcove:exit(Drv, [Child0], 0),
|
||||
|
||||
?_assertEqual(Pid, Child4).
|
||||
|
||||
eof(#state{pid = Drv}) ->
|
||||
@@ -418,7 +420,8 @@ eof(#state{pid = Drv}) ->
|
||||
N -> N
|
||||
end,
|
||||
|
||||
alcove:exit(Drv, [Child], 0),
|
||||
% XXX calling exit here causes the test to hang on some systems
|
||||
% alcove:exit(Drv, [Child], 0),
|
||||
|
||||
[
|
||||
?_assertEqual({error,ebadf}, Reply0),
|
||||
|
||||
Reference in New Issue
Block a user