aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-09 04:05:07 +0200
committerGitHub <noreply@github.com>2017-04-09 04:05:07 +0200
commit699e8406b5d57e1ca975af443329d8f24ae1b704 (patch)
tree5eb97eb63e62ebd07fec7ddeffd79dc57f80d1ef /test/helpers.lua
parentcc8f640fb16a4a697e2ad380b9973048d5142a33 (diff)
parent8e519a22ddcad6a38d966a7c340c9fd77d72f392 (diff)
downloadrneovim-699e8406b5d57e1ca975af443329d8f24ae1b704.tar.gz
rneovim-699e8406b5d57e1ca975af443329d8f24ae1b704.tar.bz2
rneovim-699e8406b5d57e1ca975af443329d8f24ae1b704.zip
Merge #6439 from ZyX-I/fix-gc-failures
unittests: Force GC, fix GC failures in typval_spec
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 3fc10e9e30..beef53b5a9 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -162,7 +162,7 @@ end
local tests_skipped = 0
-local function check_cores(app)
+local function check_cores(app, force)
app = app or 'build/bin/nvim'
local initial_path, re, exc_re
local gdb_db_cmd = 'gdb -n -batch -ex "thread apply all bt full" "$_NVIM_TEST_APP" -c "$_NVIM_TEST_CORE"'
@@ -188,7 +188,7 @@ local function check_cores(app)
random_skip = true
end
-- Finding cores takes too much time on linux
- if random_skip and math.random() < 0.9 then
+ if not force and random_skip and math.random() < 0.9 then
tests_skipped = tests_skipped + 1
return
end