You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/07/29 00:43:14 UTC

[49/54] jiffy commit: updated refs/heads/master to ef77de4

Remove flaky test case

This test has proved its point and now just exists to randomly fail some
builds depending on race conditions with the garbage collector.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/commit/d95c07cf
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/tree/d95c07cf
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/diff/d95c07cf

Branch: refs/heads/master
Commit: d95c07cf53a45a05aceb7ef1d1a4972a2d98cd50
Parents: 32b8939
Author: Paul J. Davis <pa...@gmail.com>
Authored: Fri Jul 17 12:18:21 2015 -0500
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Fri Jul 17 12:18:21 2015 -0500

----------------------------------------------------------------------
 test/jiffy_14_bignum_memory_leak.erl | 29 -----------------------------
 1 file changed, 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/blob/d95c07cf/test/jiffy_14_bignum_memory_leak.erl
----------------------------------------------------------------------
diff --git a/test/jiffy_14_bignum_memory_leak.erl b/test/jiffy_14_bignum_memory_leak.erl
deleted file mode 100644
index df3f4df..0000000
--- a/test/jiffy_14_bignum_memory_leak.erl
+++ /dev/null
@@ -1,29 +0,0 @@
-% This file is part of Jiffy released under the MIT license.
-% See the LICENSE file for more information.
-
--module(jiffy_14_bignum_memory_leak).
-
--include_lib("eunit/include/eunit.hrl").
-
-
-bignum_encoding_leak_test_() ->
-    run_gc(),
-    Before = erlang:memory(binary),
-    encode_bignums(1000000),
-    run_gc(),
-    After = erlang:memory(binary),
-    ?_assert(After - Before < 100000).
-
-
-run_gc() ->
-    [erlang:garbage_collect(Pid) || Pid <- erlang:processes()].
-
-
-encode_bignums(N) ->
-    {_, Ref} = spawn_monitor(fun() ->
-        [jiffy:encode(1072502107250210725021072502) || _ <- lists:seq(1, N)]
-    end),
-    receive
-        {'DOWN', Ref, process, _, _} ->
-            ok
-    end.