couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [18/19] jiffy commit: updated refs/heads/upstream to f661ee9
Date Sat, 25 Jul 2015 12:42:47 GMT
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/upstream
Commit: d95c07cf53a45a05aceb7ef1d1a4972a2d98cd50
Parents: 32b8939
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Fri Jul 17 12:18:21 2015 -0500
Committer: Paul J. Davis <paul.joseph.davis@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.


Mime
View raw message