diff options
Diffstat (limited to 'lib/asn1/test/testRANAP.erl')
-rw-r--r-- | lib/asn1/test/testRANAP.erl | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/asn1/test/testRANAP.erl b/lib/asn1/test/testRANAP.erl index 52a58d850b..7c1a02adf1 100644 --- a/lib/asn1/test/testRANAP.erl +++ b/lib/asn1/test/testRANAP.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2001-2010. All Rights Reserved. +%% Copyright Ericsson AB 2001-2012. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -20,18 +20,16 @@ -module(testRANAP). --export([compile/3,testobj/1]). +-export([compile/2,testobj/1]). -include_lib("test_server/include/test_server.hrl"). -compile(Config,Erule,Options) -> - ?line DataDir = ?config(data_dir,Config), - ?line OutDir = ?config(priv_dir,Config), - ?line true = code:add_patha(?config(priv_dir,Config)), - - ?line ok = asn1ct:compile(filename:join(DataDir,"RANAP"),[Erule,{outdir,OutDir}]++Options), - ?line {ok,testobj} = compile:file(filename:join(DataDir,"testobj"),[{i,OutDir},{outdir,OutDir}]++Options), +compile(Config, Options) -> + asn1_test_lib:compile("RANAP", Config, Options), + DataDir = ?config(data_dir,Config), + CaseDir = ?config(case_dir,Config), + {ok,testobj} = compile:file(filename:join(DataDir,"testobj"),[{i,CaseDir},{outdir,CaseDir}]++Options), ok. testobj(_Erule) -> |