diff options
author | Björn Gustavsson <[email protected]> | 2014-03-20 13:11:17 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-03-20 13:11:17 +0100 |
commit | b6ee065ba92fe7505674385923a2d6517f0af304 (patch) | |
tree | 7c172906caeb4d2d2dc3ad98c1d628a66c1e5a1e /lib/tools/test/cover_SUITE_data/f.erl | |
parent | ccd7ac51b630b985fc9cf50124e69c70bdb07982 (diff) | |
parent | 651d8b9ab88b4bad73d37f3696b8d3cf0970a80d (diff) | |
download | otp-b6ee065ba92fe7505674385923a2d6517f0af304.tar.gz otp-b6ee065ba92fe7505674385923a2d6517f0af304.tar.bz2 otp-b6ee065ba92fe7505674385923a2d6517f0af304.zip |
Merge branch 'bjorn/cuddle-with-tests'
* bjorn/cuddle-with-tests:
cover_SUITE:reconnect/1: Let the other side initiate the disconnect
Attempt to provide more information if a test case fails
prim_file_SUITE: Remove the short 5 seconds timetrap timeout
shell_SUITE: Give bs_match_bin_SUITE/1 more time
Diffstat (limited to 'lib/tools/test/cover_SUITE_data/f.erl')
-rw-r--r-- | lib/tools/test/cover_SUITE_data/f.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/tools/test/cover_SUITE_data/f.erl b/lib/tools/test/cover_SUITE_data/f.erl index ce2963014a..a29a67b388 100644 --- a/lib/tools/test/cover_SUITE_data/f.erl +++ b/lib/tools/test/cover_SUITE_data/f.erl @@ -10,10 +10,15 @@ f2() -> f2_line2. call_f2_when_isolated() -> + [Other] = nodes(), + net_kernel:disconnect(Other), + do_call_f2_when_isolated(). + +do_call_f2_when_isolated() -> case nodes() of [] -> f2(); _ -> timer:sleep(100), - call_f2_when_isolated() + do_call_f2_when_isolated() end. |