aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/test/int_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-04-18 08:11:59 +0200
committerBjörn Gustavsson <[email protected]>2016-04-18 08:11:59 +0200
commit26c6f622ce12e865a229b51ff503f852df56d82d (patch)
treedfad86595b411bdad7a83908e571e13a21445adb /lib/debugger/test/int_SUITE.erl
parent87c18e235cbcce8edc19d3bb154bf0cfa51a7c62 (diff)
downloadotp-26c6f622ce12e865a229b51ff503f852df56d82d.tar.gz
otp-26c6f622ce12e865a229b51ff503f852df56d82d.tar.bz2
otp-26c6f622ce12e865a229b51ff503f852df56d82d.zip
Use proplists:get_value/2 instead of ?config()
Diffstat (limited to 'lib/debugger/test/int_SUITE.erl')
-rw-r--r--lib/debugger/test/int_SUITE.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/debugger/test/int_SUITE.erl b/lib/debugger/test/int_SUITE.erl
index 4601e516b2..9d9211542c 100644
--- a/lib/debugger/test/int_SUITE.erl
+++ b/lib/debugger/test/int_SUITE.erl
@@ -36,7 +36,7 @@ init_per_testcase(interpretable, Config) ->
init_per_testcase(_Case, Config) ->
%% Interpret some existing and non-existing modules
- ?line DataDir = ?config(data_dir, Config),
+ DataDir = proplists:get_value(data_dir, Config),
?line {module, lists1} = int:i(filename:join([DataDir,lists1])),
?line {module, guards} = int:i(filename:join([DataDir,guards])),
@@ -92,7 +92,7 @@ interpret(Config) when is_list(Config) ->
?line int:n(int:interpreted()),
%% Interpret some existing and non-existing modules
- ?line DataDir = ?config(data_dir, Config),
+ DataDir = proplists:get_value(data_dir, Config),
?line {module, lists1} = int:i(filename:join([DataDir,lists1])),
?line {module, ordsets1} = int:i(filename:join([DataDir,ordsets1])),
?line error = int:i(non_existent_module),
@@ -240,14 +240,14 @@ interpretable(Config) when is_list(Config) ->
end,
%% true
- ?line DataDir = filename:dirname(?config(data_dir, Config)),
+ DataDir = filename:dirname(proplists:get_value(data_dir, Config)),
?line true = code:add_patha(DataDir),
?line true = int:interpretable(lists1),
?line true = int:interpretable(filename:join([DataDir,lists1])),
?line true = code:del_path(DataDir),
%% true (from source)
- PrivDir = filename:join(?config(priv_dir, Config), ""),
+ PrivDir = filename:join(proplists:get_value(priv_dir, Config), ""),
{ok, _} = file:copy(filename:join([DataDir,"lists1.beam"]),
filename:join([PrivDir,"lists1.beam"])),
true = code:add_patha(PrivDir),