aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/testChoOptional.erl
diff options
context:
space:
mode:
authorAdam Lindberg <[email protected]>2012-02-16 15:51:37 +0100
committerAdam Lindberg <[email protected]>2012-02-29 14:42:22 +0100
commit9ec0a0babace0932d78accf7c10b237a32dc801c (patch)
tree2d4a8e515a13497611631b0ed6cd787341ace27b /lib/asn1/test/testChoOptional.erl
parent79d2f2878c950584e56258a3c34724d42a91c631 (diff)
downloadotp-9ec0a0babace0932d78accf7c10b237a32dc801c.tar.gz
otp-9ec0a0babace0932d78accf7c10b237a32dc801c.tar.bz2
otp-9ec0a0babace0932d78accf7c10b237a32dc801c.zip
[asn1] Refactor test cases and remove extra suites
Diffstat (limited to 'lib/asn1/test/testChoOptional.erl')
-rw-r--r--lib/asn1/test/testChoOptional.erl15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/asn1/test/testChoOptional.erl b/lib/asn1/test/testChoOptional.erl
index 61a1955d28..cbb8134e51 100644
--- a/lib/asn1/test/testChoOptional.erl
+++ b/lib/asn1/test/testChoOptional.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2010. All Rights Reserved.
+%% Copyright Ericsson AB 1997-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
@@ -19,29 +19,16 @@
%%
-module(testChoOptional).
-
--export([compile/3]).
-export([optional/1]).
%-include("ChoOptional.hrl").
-include_lib("test_server/include/test_server.hrl").
-include("External.hrl").
-
-record('Seq1',{bool, int = asn1_NOVALUE, cho = asn1_NOVALUE}).
-record('Seq2',{int = asn1_NOVALUE, cho = asn1_NOVALUE, bool}).
-record('Seq3',{cho = asn1_NOVALUE, int = asn1_NOVALUE, bool}).
-
-compile(Config,Rules,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(DataDir ++ "ChoOptional",[Rules,{outdir,OutDir}]++Options).
-
-
-
optional(_Rules) ->
?line {ok,Bytes11} = asn1_wrapper:encode('ChoOptional','Seq1',#'Seq1'{bool = true}),