aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/test
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-02-17 11:09:55 +0100
committerLukas Larsson <[email protected]>2011-02-17 11:09:55 +0100
commit1b4303f812d5968fc6de961146b39a1b20f75e42 (patch)
tree623efae87a50a050156569ab33c38cb2a96d06c0 /lib/tools/test
parentd45434a0b0388e4598186e60fa3d94db5678de4f (diff)
downloadotp-1b4303f812d5968fc6de961146b39a1b20f75e42.tar.gz
otp-1b4303f812d5968fc6de961146b39a1b20f75e42.tar.bz2
otp-1b4303f812d5968fc6de961146b39a1b20f75e42.zip
Update testcases which need crypto to be skipped on platforms which does not have crypto
Diffstat (limited to 'lib/tools/test')
-rw-r--r--lib/tools/test/cover_SUITE.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tools/test/cover_SUITE.erl b/lib/tools/test/cover_SUITE.erl
index 4beb433839..f632409208 100644
--- a/lib/tools/test/cover_SUITE.erl
+++ b/lib/tools/test/cover_SUITE.erl
@@ -49,6 +49,13 @@ all(suite) ->
"Can't run cover test."}
end.
+init_per_testcase(TC, Config) when TC =:= misc; TC =:= compile ->
+ case code:which(crypto) of
+ Path when is_list(Path) ->
+ init_per_testcase(dummy_tc, Config);
+ _Else ->
+ {skip, "No crypto file to test with"}
+ end;
init_per_testcase(_TestCase, Config) ->
Config.