diff options
author | Siri Hansen <[email protected]> | 2015-09-09 14:51:11 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2015-09-10 10:17:21 +0200 |
commit | 3a9a34e581494451cc798911477f3b7bc81e3492 (patch) | |
tree | 9be85266ebd778904294ea8513415c0b77ef36e8 /lib/tools/test/cover_SUITE_data | |
parent | 1a1deb03240e7b1f738b8bc0fb172e6ae8e7061d (diff) | |
download | otp-3a9a34e581494451cc798911477f3b7bc81e3492.tar.gz otp-3a9a34e581494451cc798911477f3b7bc81e3492.tar.bz2 otp-3a9a34e581494451cc798911477f3b7bc81e3492.zip |
Add test for "Fix cover output file"
If a module includes eunit.hrl, a parse transform adds the function
test/0 on line 0 in the module. A bug in OTP-18.0 caused
cover:analyse_to_file/1 to fail to insert cover data in the output
file when line 0 existed in the cover data table. The bug is corrected
by the commit "Fix cover output file".
This commit adds a test which checks that the bug is not introduced
again.
Diffstat (limited to 'lib/tools/test/cover_SUITE_data')
-rw-r--r-- | lib/tools/test/cover_SUITE_data/include_eunit_hrl/cover_inc_eunit.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tools/test/cover_SUITE_data/include_eunit_hrl/cover_inc_eunit.erl b/lib/tools/test/cover_SUITE_data/include_eunit_hrl/cover_inc_eunit.erl new file mode 100644 index 0000000000..c1fe7939d2 --- /dev/null +++ b/lib/tools/test/cover_SUITE_data/include_eunit_hrl/cover_inc_eunit.erl @@ -0,0 +1,6 @@ +-module(cover_inc_eunit). +-compile(export_all). +-include_lib("eunit/include/eunit.hrl"). + +func() -> + ok. |