aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-09-25 09:34:41 +0200
committerFredrik Gustafsson <[email protected]>2013-09-25 09:34:41 +0200
commite38c706e55c3b3df644ec4c04ae703df73ac044e (patch)
tree6c8dacef7a60202e08cae57f59d8084a11cc2177 /lib/stdlib
parent17f6fd613e8b7039526fbb063c6751fc0c2008c3 (diff)
downloadotp-e38c706e55c3b3df644ec4c04ae703df73ac044e.tar.gz
otp-e38c706e55c3b3df644ec4c04ae703df73ac044e.tar.bz2
otp-e38c706e55c3b3df644ec4c04ae703df73ac044e.zip
stdlib: extended binary_module_SUITE to assure badarg for OTP-11350
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/test/binary_module_SUITE.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stdlib/test/binary_module_SUITE.erl b/lib/stdlib/test/binary_module_SUITE.erl
index 9b6f628aa9..00fb20489b 100644
--- a/lib/stdlib/test/binary_module_SUITE.erl
+++ b/lib/stdlib/test/binary_module_SUITE.erl
@@ -249,6 +249,10 @@ badargs(Config) when is_list(Config) ->
binary:matches(<<1,2,3>>,
{ac,ets:match_spec_compile([{'_',[],['$_']}])},
[{scope,{0,1}}])),
+ %% OTP-11350
+ badarg = ?MASK_ERROR(
+ binary:matches(<<"foo">>,
+ [<<>>, <<"f">>])),
?line badarg =
?MASK_ERROR(binary:longest_common_prefix(
[<<0:10000,1,2,4,1:3>>,