aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_test_lib.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-12-17 16:25:59 +0100
committerBjörn Gustavsson <[email protected]>2013-01-22 19:20:10 +0100
commit953b858de46f46f42e2ba45ba30a9b0b278a526d (patch)
treeb6e9cf137619a7f223c6934f36a08a10abfc865a /lib/asn1/test/asn1_test_lib.erl
parent6524db299d01e4041f02de15c1bb8eb2922408b0 (diff)
downloadotp-953b858de46f46f42e2ba45ba30a9b0b278a526d.tar.gz
otp-953b858de46f46f42e2ba45ba30a9b0b278a526d.tar.bz2
otp-953b858de46f46f42e2ba45ba30a9b0b278a526d.zip
Remove the 'inline' and '{inline,OutputFile}' options
Diffstat (limited to 'lib/asn1/test/asn1_test_lib.erl')
-rw-r--r--lib/asn1/test/asn1_test_lib.erl15
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/asn1/test/asn1_test_lib.erl b/lib/asn1/test/asn1_test_lib.erl
index fda635d0eb..1e40fd7b9e 100644
--- a/lib/asn1/test/asn1_test_lib.erl
+++ b/lib/asn1/test/asn1_test_lib.erl
@@ -61,15 +61,12 @@ compile_erlang(Mod, Config, Options) ->
[{i, CaseDir}, {outdir, CaseDir}|Options]).
should_load(File, Options) ->
- should_load(File, lists:member(abs, Options),
- proplists:lookup(inline, Options)).
-
-should_load(_File, true, _Inline) ->
- false;
-should_load(_File, _Abs, {inline, Module}) when Module /= true ->
- {module, Module};
-should_load(File, _Abs, _Inline) ->
- {module, list_to_atom(strip_extension(filename:basename(File)))}.
+ case lists:member(abs, Options) of
+ true ->
+ false;
+ false ->
+ {module,list_to_atom(strip_extension(filename:basename(File)))}
+ end.
strip_extension(File) ->
strip_extension(File, filename:extension(File)).