diff options
author | Björn Gustavsson <[email protected]> | 2014-11-26 14:55:41 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-01-12 11:40:27 +0100 |
commit | 366e3adf2dd6e33e161909ba5575f9475edd523b (patch) | |
tree | a3bf1627a42c5e124ca805b5ee307404cac4fba7 | |
parent | 8d830a79d0a05e7e508ef6685f883a7a8eb158fd (diff) | |
download | otp-366e3adf2dd6e33e161909ba5575f9475edd523b.tar.gz otp-366e3adf2dd6e33e161909ba5575f9475edd523b.tar.bz2 otp-366e3adf2dd6e33e161909ba5575f9475edd523b.zip |
Strengthen the constraint_equivalence test case
Instead of only compiling to the abstract format using 'abs',
also compile to each of the back-ends.
-rw-r--r-- | lib/asn1/test/asn1_SUITE.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE.erl b/lib/asn1/test/asn1_SUITE.erl index eb7c6e1d43..79925f9ddf 100644 --- a/lib/asn1/test/asn1_SUITE.erl +++ b/lib/asn1/test/asn1_SUITE.erl @@ -599,6 +599,14 @@ c_implicit_before_choice(Config, Rule, Opts) -> [Rule, {outdir, CaseDir}|Opts]). constraint_equivalence(Config) -> + constraint_equivalence_abs(Config), + test(Config, fun constraint_equivalence/3). + +constraint_equivalence(Config, Rule, Opts) -> + M = 'ConstraintEquivalence', + asn1_test_lib:compile(M, Config, [Rule|Opts]). + +constraint_equivalence_abs(Config) -> DataDir = ?config(data_dir, Config), CaseDir = ?config(case_dir, Config), Asn1Spec = "ConstraintEquivalence", |