aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/test/sanity_SUITE_data/sanity_no_zombies.erl
blob: f9f9951de28f3b03c108719f55b981ff69ba5724 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%%% -*- erlang-indent-level: 2 -*-
%%%----------------------------------------------------------------------
%%% Author: Per Gustafsson
%%%
%%% Checks that HiPE's concurrent compilation does not leave any zombie
%%% processes around after compilation has finished.
%%%
%%% This was a bug reported on erlang-bugs (Oct 25, 2007).
%%%----------------------------------------------------------------------

-module(sanity_no_zombies).

-export([test/0]).

test() ->
  L = length(processes()),
  hipe:c(?MODULE, [concurrent_comp]),   % force concurrent compilation
  L = length(processes()),
  ok.