diff options
author | Sverker Eriksson <[email protected]> | 2016-02-08 15:47:49 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-02-08 16:11:56 +0100 |
commit | 7a319cd96f7f4869300b32442ebe892ae557f41c (patch) | |
tree | 74eac8b419d1f9de35b5deb46bdf2f4e3884df25 /erts/emulator/test/nif_SUITE.erl | |
parent | 14680fcc3fb9d0357fe33a94525d08896afed1c5 (diff) | |
download | otp-7a319cd96f7f4869300b32442ebe892ae557f41c.tar.gz otp-7a319cd96f7f4869300b32442ebe892ae557f41c.tar.bz2 otp-7a319cd96f7f4869300b32442ebe892ae557f41c.zip |
erts: Fix error cases in enif_get_list_length
false if improper list
false if length > UINT_MAX
Diffstat (limited to 'erts/emulator/test/nif_SUITE.erl')
-rw-r--r-- | erts/emulator/test/nif_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/nif_SUITE.erl b/erts/emulator/test/nif_SUITE.erl index b02a090103..bfec474966 100644 --- a/erts/emulator/test/nif_SUITE.erl +++ b/erts/emulator/test/nif_SUITE.erl @@ -1398,7 +1398,7 @@ is_checks(Config) when is_list(Config) -> get_length(doc) -> ["Test all enif_get_length functions"]; get_length(Config) when is_list(Config) -> ?line ensure_lib_loaded(Config, 1), - ?line ok = length_test(hejsan, "hejsan", [], [], not_a_list). + ?line ok = length_test(hejsan, "hejsan", [], [], not_a_list, [1,2|3]). ensure_lib_loaded(Config) -> ensure_lib_loaded(Config, 1). @@ -1951,7 +1951,7 @@ last_resource_dtor_call() -> ?nif_stub. make_new_resource(_,_) -> ?nif_stub. check_is(_,_,_,_,_,_,_,_,_,_,_) -> ?nif_stub. check_is_exception() -> ?nif_stub. -length_test(_,_,_,_,_) -> ?nif_stub. +length_test(_,_,_,_,_,_) -> ?nif_stub. make_atoms() -> ?nif_stub. make_strings() -> ?nif_stub. make_new_resource_binary(_) -> ?nif_stub. |