summaryrefslogtreecommitdiff
path: root/lib/percept/test
diff options
context:
space:
mode:
authorAhmed Omar <spawn.think@gmail.com>2010-12-16 22:48:30 +0100
committerBjörn-Egil Dahlberg <psyeugenic@gmail.com>2010-12-29 18:33:10 +0100
commitb5505246856d905d3981f8e1f82dbd3ca08a6ead (patch)
tree437ac6619358c985375fca9f503b67e3913abe2b /lib/percept/test
parent50d40fd0bf6c796e7acf20fc2ca377cfca734251 (diff)
downloaderlang-b5505246856d905d3981f8e1f82dbd3ca08a6ead.tar.gz
Verifies the consistency of stopping behavior.
Updated the test case webserver to cover both stopping functions stop_webserver/1 and stop_webserver/0.
Diffstat (limited to 'lib/percept/test')
-rw-r--r--lib/percept/test/percept_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/percept/test/percept_SUITE.erl b/lib/percept/test/percept_SUITE.erl
index 803ce6b95f..964ac68481 100644
--- a/lib/percept/test/percept_SUITE.erl
+++ b/lib/percept/test/percept_SUITE.erl
@@ -70,6 +70,8 @@ webserver(Config) when is_list(Config) ->
% Explicit start inets?
?line {started, _, Port} = percept:start_webserver(),
?line ok = percept:stop_webserver(Port),
+ ?line {started, _, _} = percept:start_webserver(),
+ ?line ok = percept:stop_webserver(),
?line {started, _, NewPort} = percept:start_webserver(),
?line ok = percept:stop_webserver(NewPort),
?line application:stop(inets),