diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/TestLua.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/TestLua.pm b/tests/TestLua.pm index 64372ad..e13bfd3 100644 --- a/tests/TestLua.pm +++ b/tests/TestLua.pm | |||
| @@ -32,12 +32,13 @@ sub run_test ($) { | |||
| 32 | my ($res, $err); | 32 | my ($res, $err); |
| 33 | 33 | ||
| 34 | my @cmd; | 34 | my @cmd; |
| 35 | my $lua_bin = $ENV{LUA_BIN} || "luajit"; | ||
| 35 | 36 | ||
| 36 | if ($ENV{TEST_LUA_USE_VALGRIND}) { | 37 | if ($ENV{TEST_LUA_USE_VALGRIND}) { |
| 37 | warn "$name\n"; | 38 | warn "$name\n"; |
| 38 | @cmd = ('valgrind', '-q', '--leak-check=full', 'luajit', 'test_case.lua'); | 39 | @cmd = ('valgrind', '-q', '--leak-check=full', $lua_bin, 'test_case.lua'); |
| 39 | } else { | 40 | } else { |
| 40 | @cmd = ('luajit', 'test_case.lua'); | 41 | @cmd = ($lua_bin, 'test_case.lua'); |
| 41 | } | 42 | } |
| 42 | 43 | ||
| 43 | run3 \@cmd, undef, \$res, \$err; | 44 | run3 \@cmd, undef, \$res, \$err; |
