aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/test/sanity_SUITE_data/sanity_no_zombies.erl
blob: 87e746042e244b951c12486e1d96b3fbdd679c67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%%% -*- 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, to_llvm/0]).

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

to_llvm() -> false.