diff options
author | John Högberg <[email protected]> | 2018-02-15 17:06:36 +0100 |
---|---|---|
committer | John Högberg <[email protected]> | 2018-02-15 17:10:31 +0100 |
commit | 443fbb24248516523512c9bc591252eafafd1311 (patch) | |
tree | 9a42d84f7f85749d5afba867bb63bdbbc5d8651f /erts/emulator/test/binary_SUITE.erl | |
parent | ca603d7ba3e537670331754539430c704779d5ea (diff) | |
download | otp-443fbb24248516523512c9bc591252eafafd1311.tar.gz otp-443fbb24248516523512c9bc591252eafafd1311.tar.bz2 otp-443fbb24248516523512c9bc591252eafafd1311.zip |
badarg on iolist_to_binary(Bitstring)
When supplied without an enclosing list, bitstrings were returned
as-is instead of badarging.
Diffstat (limited to 'erts/emulator/test/binary_SUITE.erl')
-rw-r--r-- | erts/emulator/test/binary_SUITE.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/test/binary_SUITE.erl b/erts/emulator/test/binary_SUITE.erl index 61536bacd7..374f91e487 100644 --- a/erts/emulator/test/binary_SUITE.erl +++ b/erts/emulator/test/binary_SUITE.erl @@ -257,6 +257,7 @@ test_deep_bitstr(List) -> {Bin,bitstring_to_list(Bin)}. bad_list_to_binary(Config) when is_list(Config) -> + test_bad_bin(<<1:1>>), test_bad_bin(atom), test_bad_bin(42), test_bad_bin([1|2]), |