summaryrefslogtreecommitdiff
path: root/lib/erl_interface/test/ei_decode_encode_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/erl_interface/test/ei_decode_encode_SUITE.erl')
-rw-r--r--lib/erl_interface/test/ei_decode_encode_SUITE.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/erl_interface/test/ei_decode_encode_SUITE.erl b/lib/erl_interface/test/ei_decode_encode_SUITE.erl
index b861426792..5265b68761 100644
--- a/lib/erl_interface/test/ei_decode_encode_SUITE.erl
+++ b/lib/erl_interface/test/ei_decode_encode_SUITE.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2004-2020. All Rights Reserved.
+%% Copyright Ericsson AB 2004-2023. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -93,7 +93,10 @@ test_ei_decode_encode(Config) when is_list(Config) ->
%% Test large node containers...
ThisNode = {node(), erlang:system_info(creation)},
- TXPid = mk_pid(ThisNode, 32767, 8191),
+ TXPid = case erlang:system_info(wordsize) of
+ 4 -> mk_pid(ThisNode, 1 bsl 27, 0);
+ 8 -> mk_pid(ThisNode, 1 bsl 27, 1 bsl 31)
+ end,
TXPort = mk_port(ThisNode, 268435455),
TXRef = mk_ref(ThisNode, [262143, 4294967295, 4294967295]),