diff options
author | Björn Gustavsson <[email protected]> | 2016-03-18 12:34:37 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-03-18 12:34:37 +0100 |
commit | e3b85cb860927091d43e3c4d83c9dd9eb2ad51f8 (patch) | |
tree | 1828706b34ae646b7eac9d7a1e49073dbc707d3f /lib/asn1/test/test_compile_options.erl | |
parent | 7e13621fccd53a368b1717495382ae86239ed65b (diff) | |
download | otp-e3b85cb860927091d43e3c4d83c9dd9eb2ad51f8.tar.gz otp-e3b85cb860927091d43e3c4d83c9dd9eb2ad51f8.tar.bz2 otp-e3b85cb860927091d43e3c4d83c9dd9eb2ad51f8.zip |
Replace ?config() macro with proplists:get_value()
Diffstat (limited to 'lib/asn1/test/test_compile_options.erl')
-rw-r--r-- | lib/asn1/test/test_compile_options.erl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/asn1/test/test_compile_options.erl b/lib/asn1/test/test_compile_options.erl index e9806a7670..ea67514229 100644 --- a/lib/asn1/test/test_compile_options.erl +++ b/lib/asn1/test/test_compile_options.erl @@ -39,16 +39,16 @@ wrong_path(Config) -> end. comp(Parent,Config) -> - DataDir = ?config(data_dir,Config), - OutDir = ?config(priv_dir,Config), + DataDir = proplists:get_value(data_dir,Config), + OutDir = proplists:get_value(priv_dir,Config), Err=asn1ct:compile(DataDir++"NoImport",[{i,OutDir},{i,filename:join([DataDir,"subdir"])},{outdir,OutDir}]), Parent!Err. %% OTP-5701 path(Config) -> - DataDir = ?config(data_dir,Config), - OutDir = ?config(priv_dir,Config), + DataDir = proplists:get_value(data_dir,Config), + OutDir = proplists:get_value(priv_dir,Config), {ok,CWD} = file:get_cwd(), file:set_cwd(filename:join([DataDir,subdir])), @@ -67,8 +67,8 @@ path(Config) -> ticket_6143(Config) -> asn1_test_lib:compile("AA1", Config, []). noobj(Config) -> - DataDir = ?config(data_dir,Config), - OutDir = ?config(priv_dir,Config), + DataDir = proplists:get_value(data_dir,Config), + OutDir = proplists:get_value(priv_dir,Config), code:purge('P-Record'), file:delete(filename:join([OutDir,'P-Record.erl'])), @@ -112,8 +112,8 @@ noobj(Config) -> file:delete(filename:join([OutDir,'p_record.beam'])). verbose(Config) when is_list(Config) -> - DataDir = ?config(data_dir,Config), - OutDir = ?config(priv_dir,Config), + DataDir = proplists:get_value(data_dir,Config), + OutDir = proplists:get_value(priv_dir,Config), Asn1File = filename:join([DataDir,"Comment.asn"]), %% Test verbose compile @@ -152,8 +152,8 @@ outfiles_remove(OutDir) -> outfiles1()). record_name_prefix(Config) -> - DataDir = ?config(data_dir,Config), - OutDir = ?config(priv_dir,Config), + DataDir = proplists:get_value(data_dir,Config), + OutDir = proplists:get_value(priv_dir,Config), ok = b_SeqIn(DataDir,OutDir), ok = a_SeqIn(DataDir,OutDir). |