aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/test/jinterface_SUITE.erl
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2014-05-19 12:18:58 +0200
committerVlad Dumitrescu <[email protected]>2014-07-21 18:02:17 +0200
commit0725d5cdf30b740b5c90b9fd355401161f14f401 (patch)
tree7f5295fbf8787d08a86a73e48e58ed56db86bafa /lib/jinterface/test/jinterface_SUITE.erl
parente7e750a40ff875e6d62f1e7904470222ac8de269 (diff)
downloadotp-0725d5cdf30b740b5c90b9fd355401161f14f401.tar.gz
otp-0725d5cdf30b740b5c90b9fd355401161f14f401.tar.bz2
otp-0725d5cdf30b740b5c90b9fd355401161f14f401.zip
jinterface: fix bug in equality for OtpErlangFun
Arrays (here: md5 and freeVars) must not be compared with equals, which is broken.
Diffstat (limited to 'lib/jinterface/test/jinterface_SUITE.erl')
-rw-r--r--lib/jinterface/test/jinterface_SUITE.erl18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/jinterface/test/jinterface_SUITE.erl b/lib/jinterface/test/jinterface_SUITE.erl
index cb725164cd..00abc97ff5 100644
--- a/lib/jinterface/test/jinterface_SUITE.erl
+++ b/lib/jinterface/test/jinterface_SUITE.erl
@@ -38,7 +38,8 @@
java_exit_with_reason_any_term/1,
status_handler_localStatus/1, status_handler_remoteStatus/1,
status_handler_connAttempt/1,
- maps/1
+ maps/1,
+ fun_equals/1
]).
-include_lib("common_test/include/ct.hrl").
@@ -106,7 +107,8 @@ fundamental() ->
register_and_whereis, % RegisterAndWhereis.java
get_names, % GetNames.java
boolean_atom, % BooleanAtom.java
- maps % Maps.java
+ maps, % Maps.java
+ fun_equals % FunEquals.java
].
ping() ->
@@ -691,6 +693,18 @@ maps(Config) when is_list(Config) ->
[]).
%%%-----------------------------------------------------------------
+fun_equals(doc) ->
+ ["FunEquals.java: "
+ "Test OtpErlangFun.equals()"];
+fun_equals(suite) ->
+ [];
+fun_equals(Config) when is_list(Config) ->
+ ok = jitu:java(?config(java, Config),
+ ?config(data_dir, Config),
+ "FunEquals",
+ []).
+
+%%%-----------------------------------------------------------------
%%% INTERNAL FUNCTIONS
%%%-----------------------------------------------------------------
send_receive(TestCaseTag,Fun,Config) ->