From a062b686d387c15a631a0794ecf9db0d64ea14be Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Wed, 9 Mar 2016 18:12:36 +0100 Subject: erts: Fix wobbling tests in nif_SUITE No point in checking tmp_alloc instance 0 as any non-scheduler thread could race us. --- erts/emulator/test/nif_SUITE.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'erts/emulator') diff --git a/erts/emulator/test/nif_SUITE.erl b/erts/emulator/test/nif_SUITE.erl index e10460ce78..2400505159 100644 --- a/erts/emulator/test/nif_SUITE.erl +++ b/erts/emulator/test/nif_SUITE.erl @@ -1714,7 +1714,9 @@ tmpmem() -> false -> undefined; MemInfo -> MSBCS = lists:foldl( - fun ({instance, _, L}, Acc) -> + fun ({instance, 0, _}, Acc) -> + Acc; % Ignore instance 0 + ({instance, _, L}, Acc) -> {value,{_,MBCS}} = lists:keysearch(mbcs, 1, L), {value,{_,SBCS}} = lists:keysearch(sbcs, 1, L), [MBCS,SBCS | Acc] -- cgit v1.2.3