aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-02-22 19:14:06 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-02-26 13:00:01 +0100
commit152921837e800b9726f5bb5510398f2149541bec (patch)
tree96a7c93ccc35f8953c0fda69d02caf2e44cf0f68 /test/helpers.lua
parentd90e5f5260a5c2d25d2698eb2a4a442916efc5c5 (diff)
downloadrneovim-152921837e800b9726f5bb5510398f2149541bec.tar.gz
rneovim-152921837e800b9726f5bb5510398f2149541bec.tar.bz2
rneovim-152921837e800b9726f5bb5510398f2149541bec.zip
test: screen_setup(): Detect spawn failures, usage errors.
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 1e01aaa098..25ab80bb50 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -207,7 +207,9 @@ local function check_cores(app)
out:write(('\nTests covered by this check: %u\n'):format(tests_skipped + 1))
end
tests_skipped = 0
- assert(0 == found_cores)
+ if found_cores > 0 then
+ error("crash detected (see above)")
+ end
end
return {