aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_property_test.erl
diff options
context:
space:
mode:
authorZandra <[email protected]>2016-05-30 11:26:07 +0200
committerZandra Hird <[email protected]>2016-06-07 14:34:13 +0200
commit5e891092c2ce62ffebacdf33a4184ec38bd27108 (patch)
treeab56eb83d7f691140ef0396eb75d37d7246647b3 /lib/common_test/src/ct_property_test.erl
parentfa7bfd53a3e0f11f6c77a5ede3692a535b65e076 (diff)
downloadotp-5e891092c2ce62ffebacdf33a4184ec38bd27108.tar.gz
otp-5e891092c2ce62ffebacdf33a4184ec38bd27108.tar.bz2
otp-5e891092c2ce62ffebacdf33a4184ec38bd27108.zip
ct_property_test: Fix unmatched_return warnings
Diffstat (limited to 'lib/common_test/src/ct_property_test.erl')
-rw-r--r--lib/common_test/src/ct_property_test.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_property_test.erl b/lib/common_test/src/ct_property_test.erl
index 7dc78e949a..12c3d726d3 100644
--- a/lib/common_test/src/ct_property_test.erl
+++ b/lib/common_test/src/ct_property_test.erl
@@ -161,7 +161,9 @@ property_tests_path(Dir, Config) ->
add_code_pathz(Dir) ->
case lists:member(Dir, code:get_path()) of
true -> ok;
- false -> code:add_pathz(Dir)
+ false ->
+ true = code:add_pathz(Dir),
+ ok
end.
compile_tests(Path, ToolModule) ->
@@ -171,10 +173,10 @@ compile_tests(Path, ToolModule) ->
{ok,FileNames} = file:list_dir("."),
BeamFiles = [F || F<-FileNames,
filename:extension(F) == ".beam"],
- [file:delete(F) || F<-BeamFiles],
+ _ = [file:delete(F) || F<-BeamFiles],
ct:pal("Compiling in ~p:~n Deleted ~p~n MacroDefs=~p",[Path,BeamFiles,MacroDefs]),
Result = make:all([load|MacroDefs]),
- file:set_cwd(Cwd),
+ ok = file:set_cwd(Cwd),
Result.