Skip to content

Commit

Permalink
update exitless-busted generation
Browse files Browse the repository at this point in the history
Busted 2.0.rc11-0 has the following main file:

> require 'busted.runner'({ standalone = false })

Previous Busted versions had batch = true instead of standalone = false.
Use both of them to be compatible with both Busted versions.

See https://travis-ci.org/npge/lua-npge/jobs/87770095#L3023
  • Loading branch information
starius committed Oct 27, 2015
1 parent d9ed96b commit 092edac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis/test_with_valgrind.sh
Expand Up @@ -3,7 +3,7 @@ if [ "$LUA" != "luajit" ]; then
luarocks make --local CFLAGS="-O0 -g -fPIC"
# make busted which does not call os.exit
echo 'os.exit = function() end' > exitless-busted
echo 'require "busted.runner"({ batch = true })' \
echo 'require "busted.runner"({ standalone = false, batch = true })' \
>> exitless-busted
# valgrind...
valgrind --error-exitcode=1 --leak-check=full \
Expand Down

0 comments on commit 092edac

Please sign in to comment.