diff options
author | Björn Gustavsson <[email protected]> | 2015-01-21 10:18:27 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-01-21 10:18:27 +0100 |
commit | 2efa0d7d6c4bcc529aa128f859fed83bda12a884 (patch) | |
tree | b4c16bdaf17325dff1226b0236673dcecdb3052d /lib/compiler/test/beam_validator_SUITE.erl | |
parent | 046751dc8ca305a390aa4cf9ee132f0190d809f5 (diff) | |
parent | 9f181f07d452a63c1787c71199ca4ac61ea5f688 (diff) | |
download | otp-2efa0d7d6c4bcc529aa128f859fed83bda12a884.tar.gz otp-2efa0d7d6c4bcc529aa128f859fed83bda12a884.tar.bz2 otp-2efa0d7d6c4bcc529aa128f859fed83bda12a884.zip |
Merge branch 'bjorn/compiler/coverage'
* bjorn/compiler/coverage:
map_SUITE: Ensure recompilation when running cover
Add beam_utils_SUITE to cover more lines in beam_utils
beam_utils: Remove unreachable clauses in live_opt/4
receive_SUITE: Cover handling of recv_mark & recv_set in beam_utils
beam_validator_SUITE: Mend the compiler_bug/1 test case
beam_clean: Remove handling of forgotten instructions
compile_SUITE: Test the 'dialyzer' option
Diffstat (limited to 'lib/compiler/test/beam_validator_SUITE.erl')
-rw-r--r-- | lib/compiler/test/beam_validator_SUITE.erl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/compiler/test/beam_validator_SUITE.erl b/lib/compiler/test/beam_validator_SUITE.erl index 626f89ba7a..27979647c6 100644 --- a/lib/compiler/test/beam_validator_SUITE.erl +++ b/lib/compiler/test/beam_validator_SUITE.erl @@ -96,9 +96,16 @@ do_beam_file(F) -> compiler_bug(Config) when is_list(Config) -> %% Check that the compiler returns an error if we try to %% assemble one of the bad '.S' files. - ?line Data = ?config(data_dir, Config), - ?line File = filename:join(Data, "stack"), - ?line error = compile:file(File, [asm,report_errors,binary,time]), + Data = ?config(data_dir, Config), + File = filename:join(Data, "compiler_bug"), + error = compile:file(File, [from_asm,report_errors,time]), + + %% Make sure that the error was reported by + %% the beam_validator module. + {error, + [{"compiler_bug", + [{beam_validator,_}]}], + []} = compile:file(File, [from_asm,return_errors,time]), ok. %% The following code is stupid but it should compile. |