From 635c78f152ee6c7ddda23bf237e7ad3aa70abe77 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Mon, 7 Mar 2011 12:23:20 +0100 Subject: Update cover tests which depend on compiled files to be skipped if the compile testcase is skipped --- lib/tools/test/cover_SUITE.erl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/tools/test/cover_SUITE.erl') diff --git a/lib/tools/test/cover_SUITE.erl b/lib/tools/test/cover_SUITE.erl index f632409208..b55a1ddc7a 100644 --- a/lib/tools/test/cover_SUITE.erl +++ b/lib/tools/test/cover_SUITE.erl @@ -49,7 +49,12 @@ all(suite) -> "Can't run cover test."} end. -init_per_testcase(TC, Config) when TC =:= misc; TC =:= compile -> +init_per_testcase(TC, Config) when TC =:= misc; + TC =:= compile; + TC =:= analyze; + TC =:= distribution; + TC =:= otp_5031; + TC =:= stop -> case code:which(crypto) of Path when is_list(Path) -> init_per_testcase(dummy_tc, Config); -- cgit v1.2.3 From c516e63684fe23def2626ddfefcec11f1806f062 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Mon, 7 Mar 2011 12:23:31 +0100 Subject: Add short sleep to prevent timing issues on slow machines --- lib/tools/test/cover_SUITE.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/tools/test/cover_SUITE.erl') diff --git a/lib/tools/test/cover_SUITE.erl b/lib/tools/test/cover_SUITE.erl index b55a1ddc7a..c3f691e773 100644 --- a/lib/tools/test/cover_SUITE.erl +++ b/lib/tools/test/cover_SUITE.erl @@ -350,6 +350,7 @@ distribution(Config) when is_list(Config) -> %% Check that stop() unloads on all nodes ?line ok = cover:stop(), + ?line timer:sleep(100), %% Give nodes time to unload on slow machines. ?line LocalBeam = code:which(f), ?line N2Beam = rpc:call(N2,code,which,[f]), ?line true = is_unloaded(LocalBeam), -- cgit v1.2.3 From 97337e16638529f24b6231ada3b4333813448cee Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Tue, 8 Mar 2011 17:13:47 +0100 Subject: Fix spelling on analyse --- lib/tools/test/cover_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tools/test/cover_SUITE.erl') diff --git a/lib/tools/test/cover_SUITE.erl b/lib/tools/test/cover_SUITE.erl index c3f691e773..483d416411 100644 --- a/lib/tools/test/cover_SUITE.erl +++ b/lib/tools/test/cover_SUITE.erl @@ -51,7 +51,7 @@ all(suite) -> init_per_testcase(TC, Config) when TC =:= misc; TC =:= compile; - TC =:= analyze; + TC =:= analyse; TC =:= distribution; TC =:= otp_5031; TC =:= stop -> -- cgit v1.2.3