From 56671f12861bd45afce4fbea78dfafdb59790791 Mon Sep 17 00:00:00 2001 From: "Tilman M. Jaeschke" Date: Sun, 1 Aug 2021 13:12:10 +0200 Subject: [PATCH] test fix --- src/luaport.app.src | 2 +- test/luaport_SUITE.erl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/luaport.app.src b/src/luaport.app.src index f2f314e..ea1c1d4 100644 --- a/src/luaport.app.src +++ b/src/luaport.app.src @@ -1,6 +1,6 @@ {application, luaport, [ {description, "An erlang/elixir port for scripting application logic in lua. Works with lua and luajit."}, - {vsn, "1.6.0"}, + {vsn, "1.6.1"}, {modules, [luaport, luaport_app, luaport_sup, luaport_server]}, {registered, [luaport_sup]}, {mod, {luaport_app, []}}, diff --git a/test/luaport_SUITE.erl b/test/luaport_SUITE.erl index 3f9d777..9d42a39 100644 --- a/test/luaport_SUITE.erl +++ b/test/luaport_SUITE.erl @@ -31,7 +31,6 @@ case1(_Config) -> %{ok, [[{atom, true, false, nil}, "abc"]]} = luaport:call(Pid, 'Echo', [[{atom, true, false, nil}, "abc"]]), {ok, [{{2, 3}, {<<"vier">>, 5}}]} = luaport:call(Pid, 'Echo', [{{2, 3}, {<<"vier">>, 5}}]), {ok, [6]} = luaport:call(Pid, 'Call', [<<"multiply">>, 2, 3]), - {ok, []} = luaport:call(Pid, 'Call', [<<"undefined">>, 2, 3]), PortRef2 = {local, moin}, {ok, _Pid2, []} = luaport:spawn(PortRef2, Path, #{}, ?MODULE), {ok, [15]} = luaport:call(PortRef2, 'Call', [<<"multiply">>, 3, 5]), @@ -69,6 +68,7 @@ case1(_Config) -> "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" "+++++++++++++++">>]), + {error, undefined_callback} = luaport:call(Pid, 'Call', [<<"undefined">>, 2, 3]), ok = luaport:despawn(banane), NilRef = {global, nil}, NilPath = filename:join([code:priv_dir(luaport), nil]), @@ -99,4 +99,4 @@ multiply(A, B) -> [A * B]. print(A) -> - ct:pal("print: ~p~n", [A]). \ No newline at end of file + ct:pal("print: ~p~n", [A]).