summaryrefslogtreecommitdiff
path: root/lib/compiler/test/beam_validator_SUITE.erl
diff options
context:
space:
mode:
authorHans Bolinder <hasse@erlang.org>2021-02-01 07:17:32 +0100
committerHans Bolinder <hasse@erlang.org>2021-02-01 07:17:32 +0100
commitee6a69bcef0dfdafe07906b939052d24e25be9c3 (patch)
treea778d0648b2b9fbbb3bc1eba374ce0d25a29a1e3 /lib/compiler/test/beam_validator_SUITE.erl
parent2ac9e0744e867f791662a5f279e91f6a7bf67199 (diff)
parent370a2f1c940d305818eb6e415e874741382c22d9 (diff)
downloaderlang-ee6a69bcef0dfdafe07906b939052d24e25be9c3.tar.gz
Merge branch 'richcarl/columns/PR-2664/OTP-16824'
* richcarl/columns/PR-2664/OTP-16824: (56 commits) Update primary bootstrap erl_lint: Give a better column position for format warnings erl_lint: Correct column number for unsized binary not at end Include column numbers in compiler warnings dialyzer: Improve column numbers in warnings stdlib: Improve locations of annotations of abstract code stdlib: Improve error locations in module erl_lint stdlib: Improve error locations in module epp stdlib: Improve error locations in module erl_parse stdlib: Fix handling of annotations in erl_expand_records erl_docgen: Correct handling of annotation of abstract code syntax_tools: Generalize start line to be location syntax_tools: Correct handling of annotations of abstract code edoc: Correct handling of annotations of abstract code tools: Substitute Anno for Line in xref_reader tools: Substitute Anno for Line in cover stdlib: Substitute Anno for Line in epp stdlib: Substitute Anno for Line in erl_eval stdlib: Substitute Anno for Line in erl_pp stdlib: Substitute Anno for Line in eval_bits ...
Diffstat (limited to 'lib/compiler/test/beam_validator_SUITE.erl')
-rw-r--r--lib/compiler/test/beam_validator_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compiler/test/beam_validator_SUITE.erl b/lib/compiler/test/beam_validator_SUITE.erl
index 49731f9137..565a86be98 100644
--- a/lib/compiler/test/beam_validator_SUITE.erl
+++ b/lib/compiler/test/beam_validator_SUITE.erl
@@ -99,7 +99,7 @@ compiler_bug(Config) when is_list(Config) ->
%% the beam_validator module.
{error,
[{"compiler_bug",
- [{beam_validator,_}]}],
+ [{_Pos,beam_validator,_}]}],
[]} = compile:file(File, [from_asm,return_errors,time]),
ok.
@@ -892,7 +892,7 @@ do_val(Mod, Config) ->
case compile:file(File, [from_asm,no_postopt,return_errors]) of
{error,L,[]} ->
[{Base,Errors0}] = L,
- Errors = [E || {beam_validator,E} <- Errors0],
+ Errors = [E || {_Pos,beam_validator,E} <- Errors0],
_ = [io:put_chars(beam_validator:format_error(E)) ||
E <- Errors],
Errors;
@@ -903,7 +903,7 @@ do_val(Mod, Config) ->
beam_val(M) ->
Name = atom_to_list(element(1, M)),
{error,[{Name,Errors0}]} = beam_validator:validate(M, strong),
- Errors = [E || {beam_validator,E} <- Errors0],
+ Errors = [E || {_Pos,beam_validator,E} <- Errors0],
_ = [io:put_chars(beam_validator:format_error(E)) ||
E <- Errors],
Errors.