Skip to content

Commit

Permalink
Merge pull request #1251 from bettio/make-test_raw_raise-pass
Browse files Browse the repository at this point in the history
Make `test_raw_raise` pass

Accept `undefined` as stacktrace value. This might be changed in the future.

See also #1247

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
  • Loading branch information
bettio committed Aug 17, 2024
2 parents 2753129 + 2813ce9 commit 6f473f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/erlang_tests/test_raw_raise.erl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ do_catch() ->
_X -> 1
catch
error:{badarith, new_reason}:ST ->
% TODO: verify if undefined is an acceptable value or an AtomVM only extension
% See also issue #1247
case ST of
L when is_list(L) -> 0;
undefined -> 0;
_ -> 2
end;
_:_ ->
Expand Down

0 comments on commit 6f473f9

Please sign in to comment.