diff options
author | Hans Bolinder <[email protected]> | 2015-01-29 12:54:16 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-30 12:15:25 +0200 |
commit | 2c4068dee7e8a901f0bd9104254036f4bb1ffd6e (patch) | |
tree | 97b53487a90ef2f573726008169052eb783ffdce /lib/diameter/test | |
parent | dbf9be2a2068c2fb5433bd2902057322d08e077e (diff) | |
download | otp-2c4068dee7e8a901f0bd9104254036f4bb1ffd6e.tar.gz otp-2c4068dee7e8a901f0bd9104254036f4bb1ffd6e.tar.bz2 otp-2c4068dee7e8a901f0bd9104254036f4bb1ffd6e.zip |
diameter: Use module erl_anno
Diffstat (limited to 'lib/diameter/test')
-rw-r--r-- | lib/diameter/test/diameter_capx_SUITE.erl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/diameter/test/diameter_capx_SUITE.erl b/lib/diameter/test/diameter_capx_SUITE.erl index 02501ce779..1c0f25864c 100644 --- a/lib/diameter/test/diameter_capx_SUITE.erl +++ b/lib/diameter/test/diameter_capx_SUITE.erl @@ -378,10 +378,14 @@ dict(N) -> %% id's, failing with app_not_configured if it can't. load_dict(N) -> Mod = dict(N), - Forms = [{attribute, 1, module, Mod}, - {attribute, 2, compile, [export_all]}, - {function, 3, id, 0, - [{clause, 4, [], [], [{integer, 4, N}]}]}], + A1 = erl_anno:new(1), + A2 = erl_anno:new(2), + A3 = erl_anno:new(3), + A4 = erl_anno:new(4), + Forms = [{attribute, A1, module, Mod}, + {attribute, A2, compile, [export_all]}, + {function, A3, id, 0, + [{clause, A4, [], [], [{integer, A4, N}]}]}], {ok, Mod, Bin, []} = compile:forms(Forms, [return]), {module, Mod} = code:load_binary(Mod, Mod, Bin), N = Mod:id(). |