aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-09-03 16:28:51 +0200
committerSiri Hansen <[email protected]>2012-09-03 16:28:51 +0200
commit3b73cabcba3ac6dcc91c7ae2b00f21d254dfdd4b (patch)
treece4a32305c03ae531b28c3d0eb1a4a8a517f501c /lib/runtime_tools/test
parent94fa6d2fcf729d3df37a4e8dc4e369bf444ea55a (diff)
downloadotp-3b73cabcba3ac6dcc91c7ae2b00f21d254dfdd4b.tar.gz
otp-3b73cabcba3ac6dcc91c7ae2b00f21d254dfdd4b.tar.bz2
otp-3b73cabcba3ac6dcc91c7ae2b00f21d254dfdd4b.zip
Remove all traces of inviso application from runtime_tools
Rests of inviso was still in runtime_tools.app.src and runtime_tools_sup.erl. This has been removed. A test of application:start/stop is also added to runtime_tools_SUITE.
Diffstat (limited to 'lib/runtime_tools/test')
-rw-r--r--lib/runtime_tools/test/runtime_tools_SUITE.erl21
1 files changed, 13 insertions, 8 deletions
diff --git a/lib/runtime_tools/test/runtime_tools_SUITE.erl b/lib/runtime_tools/test/runtime_tools_SUITE.erl
index b26f3dd881..62497ab527 100644
--- a/lib/runtime_tools/test/runtime_tools_SUITE.erl
+++ b/lib/runtime_tools/test/runtime_tools_SUITE.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2011. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -25,7 +25,7 @@
-export([init_per_testcase/2, end_per_testcase/2]).
%% Test cases
--export([app_file/1]).
+-export([app_file/1, start_stop_app/1]).
%% Default timetrap timeout (set in init_per_testcase)
-define(default_timeout, ?t:minutes(1)).
@@ -42,7 +42,8 @@ end_per_testcase(_Case, Config) ->
suite() -> [{ct_hooks,[ts_install_cth]}].
all() ->
- [app_file].
+ [app_file,
+ start_stop_app].
groups() ->
[].
@@ -60,10 +61,14 @@ end_per_group(_GroupName, Config) ->
Config.
-app_file(suite) ->
- [];
-app_file(doc) ->
- ["Testing .app file"];
-app_file(Config) when is_list(Config) ->
+app_file(_Config) ->
?line ok = ?t:app_test(runtime_tools),
ok.
+
+start_stop_app(_Config) ->
+ ok = application:start(runtime_tools),
+ Sup = whereis(runtime_tools_sup),
+ true = is_pid(Sup),
+ Ref = erlang:monitor(process,Sup),
+ ok = application:stop(runtime_tools),
+ receive {'DOWN', Ref, process, Sup, shutdown} -> ok end.