[erlang-questions] EUnit error test: limit number of processes at runtime

Kostis Sagonas kostis@REDACTED
Sat Apr 28 19:11:05 CEST 2012


On 04/28/2012 07:06 PM, Christian Kruse wrote:
> Hi,
>
> for an Erlang project I'm working on (Open Source,
> <https://github.com/ckruse/irckerl>  in case someone is curious) I'm
> trying to test a possible error with spawning a process, e.g. maximum
> number of processes reached. Since I don't want to spawn>  32k
> processes for each test run, I'd like to limit the number of possible
> processes for this test only.
>
> Is this possible? Or is there another solution I can use to test such
> an error case?

Have you considered using the +P option of erl?

Kostis



More information about the erlang-questions mailing list