aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-01-10 14:14:19 +0100
committerBjörn Gustavsson <[email protected]>2013-01-22 19:20:11 +0100
commiteefed16b34af8497c8eb28c74367a1bd44b0d9bd (patch)
tree84c0a6e7c81850e7f30a1d0670a4f337874ff250 /lib/asn1/test
parent70caf52f1a7e09569c776bb1f99b0bf4737c63c2 (diff)
downloadotp-eefed16b34af8497c8eb28c74367a1bd44b0d9bd.tar.gz
otp-eefed16b34af8497c8eb28c74367a1bd44b0d9bd.tar.bz2
otp-eefed16b34af8497c8eb28c74367a1bd44b0d9bd.zip
BER: Correct bug in 'undec_rest'
enif_make_new_binary() cannot return NULL, so while at it, remove the check for return value of enif_make_new_binary() being NULL.
Diffstat (limited to 'lib/asn1/test')
-rw-r--r--lib/asn1/test/asn1_SUITE.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/asn1/test/asn1_SUITE.erl b/lib/asn1/test/asn1_SUITE.erl
index 6299d50513..00a32700a4 100644
--- a/lib/asn1/test/asn1_SUITE.erl
+++ b/lib/asn1/test/asn1_SUITE.erl
@@ -1012,10 +1012,7 @@ test_undecoded_rest(Config, Rule, Opts) ->
asn1_test_lib:compile("P-Record", Config, [Rule|Opts]),
ok = test_undecoded_rest:test([], Config),
asn1_test_lib:compile("P-Record", Config, [Rule,undec_rest|Opts]),
- case Rule of
- ber -> ok;
- _ -> test_undecoded_rest:test(undec_rest, Config)
- end.
+ test_undecoded_rest:test(undec_rest, Config).
testTcapsystem(Config) ->
test(Config, fun testTcapsystem/3, [ber]).