[Tarantool-patches] [PATCH v2 luajit 28/30] test: disable PUC Lua test checking -h option

Sergey Ostanevich sergos at tarantool.org
Fri Mar 26 18:58:46 MSK 2021


LGTM.
Sergos

> On 26 Mar 2021, at 10:43, Sergey Kaplun <skaplun at tarantool.org> wrote:
> 
> Tarantool returns zero status at exit with -h option, unlike Lua or
> LuaJIT does.
> 
> This patch disables test checking returning status, when binary
> runs with -h option.
> 
> Part of tarantool/tarantool#5845
> Part of tarantool/tarantool#4473
> ---
> test/PUC-Lua-5.1-tests/main.lua | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/test/PUC-Lua-5.1-tests/main.lua b/test/PUC-Lua-5.1-tests/main.lua
> index acc50a6..0ca7ef4 100644
> --- a/test/PUC-Lua-5.1-tests/main.lua
> +++ b/test/PUC-Lua-5.1-tests/main.lua
> @@ -201,7 +201,10 @@ assert(not os.remove(out))
> 
> RUN("lua -v")
> 
> -NoRun("lua -h")
> +-- FIXME: Tarantool returns zero status at exit with -h option,
> +-- unlike Lua or LuaJIT does.
> +-- The test is disabled for Tarantool binary.
> +-- NoRun("lua -h")
> NoRun("lua -e")
> NoRun("lua -e a")
> NoRun("lua -f")
> -- 
> 2.31.0
> 



More information about the Tarantool-patches mailing list