aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZandra <[email protected]>2016-05-30 12:07:24 +0200
committerZandra Hird <[email protected]>2016-06-07 14:34:30 +0200
commit47b6a312581a6e65292fc4b2ba5b8c16c30c9394 (patch)
treee183a11b721dd9711b3f6fc6a62d379c722154dd /lib
parent67ab85bfe57cf99687069710e36c38afdcf4d2fa (diff)
downloadotp-47b6a312581a6e65292fc4b2ba5b8c16c30c9394.tar.gz
otp-47b6a312581a6e65292fc4b2ba5b8c16c30c9394.tar.bz2
otp-47b6a312581a6e65292fc4b2ba5b8c16c30c9394.zip
ct_repeat: Fix unmatched_return warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/common_test/src/ct_repeat.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_repeat.erl b/lib/common_test/src/ct_repeat.erl
index 31c5755c7e..dac596a135 100644
--- a/lib/common_test/src/ct_repeat.erl
+++ b/lib/common_test/src/ct_repeat.erl
@@ -44,13 +44,13 @@ loop_test(If,Args) when is_list(Args) ->
false;
E = {error,_} ->
io:format("Common Test error: ~p\n\n",[E]),
- file:set_cwd(Cwd),
+ ok = file:set_cwd(Cwd),
E;
{repeat,N} ->
io:format("\nCommon Test: Will repeat tests ~w times.\n\n",[N]),
Args1 = [{loop_info,[{repeat,1,N}]} | Args],
Result = loop(If,repeat,0,N,undefined,Args1,undefined,[]),
- file:set_cwd(Cwd),
+ ok = file:set_cwd(Cwd),
Result;
{stop_time,StopTime} ->
Result =
@@ -76,7 +76,7 @@ loop_test(If,Args) when is_list(Args) ->
Args1 = [{loop_info,[{stop_time,Secs,StopTime,1}]} | Args],
loop(If,stop_time,0,Secs,StopTime,Args1,TPid,[])
end,
- file:set_cwd(Cwd),
+ ok = file:set_cwd(Cwd),
Result
end.