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:
Michael Santos
2014-05-11 15:40:24 -04:00
parent 1dd28aad3a
commit 1003087ef9

View File

@@ -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),