aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-12-21 12:16:39 +0100
committerSiri Hansen <[email protected]>2012-12-21 12:16:39 +0100
commit06ad426384ab6c5f5966c4f5ae87be0fb01f346c (patch)
tree1fb6d8e3e8b52c3827f6338127c0bd979225b2c9 /lib/tools
parent6e9038f942dbe5f7968c2f6467f3d85a7fe458a2 (diff)
downloadotp-06ad426384ab6c5f5966c4f5ae87be0fb01f346c.tar.gz
otp-06ad426384ab6c5f5966c4f5ae87be0fb01f346c.tar.bz2
otp-06ad426384ab6c5f5966c4f5ae87be0fb01f346c.zip
[cover] Cleanup by stopping cover between tests
If one test failed, the next would sometimes also fail since cover was not stopped.
Diffstat (limited to 'lib/tools')
-rw-r--r--lib/tools/test/cover_SUITE.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/tools/test/cover_SUITE.erl b/lib/tools/test/cover_SUITE.erl
index ef3daef173..57260a3869 100644
--- a/lib/tools/test/cover_SUITE.erl
+++ b/lib/tools/test/cover_SUITE.erl
@@ -89,8 +89,11 @@ init_per_testcase(TC, Config) when TC =:= misc;
init_per_testcase(_TestCase, Config) ->
Config.
-end_per_testcase(_TestCase, _Config) ->
- %cover:stop(),
+end_per_testcase(TestCase, _Config) ->
+ case lists:member(TestCase,[start,compile,analyse,misc]) of
+ true -> ok;
+ false -> cover:stop()
+ end,
ok.
start(suite) -> [];
@@ -999,7 +1002,7 @@ otp_8270(Config) when is_list(Config) ->
ok.
otp_8273(doc) ->
- ["OTP-8270. Bug."];
+ ["OTP-8273. Bug."];
otp_8273(suite) -> [];
otp_8273(Config) when is_list(Config) ->
Test = <<"-module(t).