summaryrefslogtreecommitdiff
path: root/lib/compiler/test/compile_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2019-03-22 10:22:24 +0100
committerBjörn Gustavsson <bjorn@erlang.org>2019-03-25 09:58:58 +0100
commit6f248d2f73475319b25ad00676168ec75f682489 (patch)
tree233da8f9b99bb103bd8245b9c76c0c1ae6c2bd0a /lib/compiler/test/compile_SUITE.erl
parentf3293ecdb3c223ec10babbbf26569e00f89ae28d (diff)
downloaderlang-6f248d2f73475319b25ad00676168ec75f682489.tar.gz
Add test_lib:highest_opcode/1
Diffstat (limited to 'lib/compiler/test/compile_SUITE.erl')
-rw-r--r--lib/compiler/test/compile_SUITE.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/compiler/test/compile_SUITE.erl b/lib/compiler/test/compile_SUITE.erl
index 408af80dd9..53627b9d81 100644
--- a/lib/compiler/test/compile_SUITE.erl
+++ b/lib/compiler/test/compile_SUITE.erl
@@ -1431,9 +1431,7 @@ bc_options(Config) ->
highest_opcode(DataDir, Mod, Opt) ->
Src = filename:join(DataDir, atom_to_list(Mod)++".erl"),
{ok,Mod,Beam} = compile:file(Src, [binary|Opt]),
- {ok,{Mod,[{"Code",Code}]}} = beam_lib:chunks(Beam, ["Code"]),
- <<16:32,0:32,HighestOpcode:32,_/binary>> = Code,
- HighestOpcode.
+ test_lib:highest_opcode(Beam).
deterministic_include(Config) when is_list(Config) ->
DataDir = proplists:get_value(data_dir, Config),