diff options
author | Björn Gustavsson <bjorn@erlang.org> | 2016-02-25 15:01:29 +0100 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2016-02-25 15:53:34 +0100 |
commit | ca93ccf62e91c55345eb1e67e6ea107ba72e5a1f (patch) | |
tree | 68d224a8aad67c1d5de588cd7584731fa4e6ecf1 /lib/compiler/test/test_lib.erl | |
parent | 5fe95cec32ddc92f6a483c24f6f591586ba065f7 (diff) | |
download | erlang-ca93ccf62e91c55345eb1e67e6ea107ba72e5a1f.tar.gz |
Eliminate use of ?config() macro
?config is ugly and not recommended. Use proplists:get_value/2
instead.
Diffstat (limited to 'lib/compiler/test/test_lib.erl')
-rw-r--r-- | lib/compiler/test/test_lib.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/test/test_lib.erl b/lib/compiler/test/test_lib.erl index e4b6a2fa9c..5768b67a56 100644 --- a/lib/compiler/test/test_lib.erl +++ b/lib/compiler/test/test_lib.erl @@ -85,7 +85,7 @@ opt_opts(Mod) -> %% This function retrieves the path to the original data directory. get_data_dir(Config) -> - Data0 = ?config(data_dir, Config), + Data0 = proplists:get_value(data_dir, Config), Opts = [{return,list}], Data1 = re:replace(Data0, "_no_opt_SUITE", "_SUITE", Opts), Data = re:replace(Data1, "_post_opt_SUITE", "_SUITE", Opts), |