diff options
author | Sverker Eriksson <[email protected]> | 2016-03-09 18:12:36 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-03-09 18:12:36 +0100 |
commit | a062b686d387c15a631a0794ecf9db0d64ea14be (patch) | |
tree | c808fa79e493f7025c9a9f43b650e0b5af76975c /erts | |
parent | 2e8369fa0932e076bda89fa6f15f9f3b99de074a (diff) | |
download | otp-a062b686d387c15a631a0794ecf9db0d64ea14be.tar.gz otp-a062b686d387c15a631a0794ecf9db0d64ea14be.tar.bz2 otp-a062b686d387c15a631a0794ecf9db0d64ea14be.zip |
erts: Fix wobbling tests in nif_SUITE
No point in checking tmp_alloc instance 0
as any non-scheduler thread could race us.
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/test/nif_SUITE.erl | 4 |
1 files changed, 3 insertions, 1 deletions
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] |