diff options
author | Siri Hansen <[email protected]> | 2012-11-27 16:19:17 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2012-12-04 11:35:51 +0100 |
commit | a71ec754bb995f72f0c7fa244ceb21383d717cfc (patch) | |
tree | 446a5d77612c8fbf1fcc9ceecb67a4ff2f39c543 /lib/test_server/test/test_server_SUITE_data/test_server_break_SUITE.erl | |
parent | bd67967b55a172b46c29a503439feb1e7c58ab06 (diff) | |
download | otp-a71ec754bb995f72f0c7fa244ceb21383d717cfc.tar.gz otp-a71ec754bb995f72f0c7fa244ceb21383d717cfc.tar.bz2 otp-a71ec754bb995f72f0c7fa244ceb21383d717cfc.zip |
[test_server] Add test of code cover mechanism
Diffstat (limited to 'lib/test_server/test/test_server_SUITE_data/test_server_break_SUITE.erl')
-rw-r--r-- | lib/test_server/test/test_server_SUITE_data/test_server_break_SUITE.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/test_server/test/test_server_SUITE_data/test_server_break_SUITE.erl b/lib/test_server/test/test_server_SUITE_data/test_server_break_SUITE.erl index 70e30a3334..d9f009679a 100644 --- a/lib/test_server/test/test_server_SUITE_data/test_server_break_SUITE.erl +++ b/lib/test_server/test/test_server_SUITE_data/test_server_break_SUITE.erl @@ -41,7 +41,7 @@ init_per_suite(Config) -> spawn(fun break_and_continue_sup/0), Config. -end_per_suite(Config) -> +end_per_suite(_Config) -> ok. init_per_testcase(Case,Config) when Case==break_in_init_tc -> @@ -90,19 +90,19 @@ break_in_end_tc_after_fail(Config) when is_list(Config) -> break_in_end_tc_after_abort(Config) when is_list(Config) -> ?t:adjusted_sleep(2000). % will cause a timetrap timeout -%%%----------------------------------------------------------------- -%%% Internal functions - %% This test case checks that all breaks in previous test cases was %% also continued, and that the break lasted as long as expected. %% The reason for this is that some of the breaks above are in %% end_per_testcase, and failures there will only produce a warning, %% not an error - so this is to catch the error for real. -check_all_breaks(Config) -> +check_all_breaks(Config) when is_list(Config) -> break_and_continue_sup ! {done,self()}, receive {Breaks,Continued} -> check_all_breaks(Breaks,Continued) end. +%%%----------------------------------------------------------------- +%%% Internal functions + check_all_breaks([{From,Case,T,Start}|Breaks],[{From,End}|Continued]) -> Diff = timer:now_diff(End,Start), |