aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/test
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-03-02 14:55:57 +0100
committerLukas Larsson <[email protected]>2011-03-02 14:55:57 +0100
commit01873381c2288a12e93b4bdb13b68c8f80039988 (patch)
tree335af13e31a5c2bc5de46daabfb6d423376e03e5 /lib/os_mon/test
parenta324127f378d5cf294cb87d1ae582996b72a2c00 (diff)
downloadotp-01873381c2288a12e93b4bdb13b68c8f80039988.tar.gz
otp-01873381c2288a12e93b4bdb13b68c8f80039988.tar.bz2
otp-01873381c2288a12e93b4bdb13b68c8f80039988.zip
Update unavailable test case to do setup and teardown
Diffstat (limited to 'lib/os_mon/test')
-rw-r--r--lib/os_mon/test/disksup_SUITE.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/os_mon/test/disksup_SUITE.erl b/lib/os_mon/test/disksup_SUITE.erl
index 6e015ef74a..a3c6c7782d 100644
--- a/lib/os_mon/test/disksup_SUITE.erl
+++ b/lib/os_mon/test/disksup_SUITE.erl
@@ -41,10 +41,16 @@ end_per_suite(Config) when is_list(Config) ->
?line ok = application:stop(os_mon),
Config.
+init_per_testcase(unavailable, Config) ->
+ terminate(Config),
+ init_per_testcase(dummy, Config);
init_per_testcase(_Case, Config) ->
Dog = ?t:timetrap(?default_timeout),
[{watchdog,Dog} | Config].
+end_per_testcase(unavailable, Config) ->
+ restart(Config),
+ end_per_testcase(dummy, Config);
end_per_testcase(_Case, Config) ->
Dog = ?config(watchdog, Config),
?t:timetrap_cancel(Dog),