aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-27 23:02:27 +0200
committerGitHub <noreply@github.com>2018-03-27 23:02:27 +0200
commit3f3de9b1a95d273463a87516365510dbffcaf3d2 (patch)
treec5a1d424bc596b0b49c7b0f801c1c1bb864d0e84 /test
parent8d5a46e77b1e0c77296f1d0d192e7906dd37c0d7 (diff)
parent393935c32d48c3a1a02a78df03ea8c67e0a8fb20 (diff)
downloadrneovim-3f3de9b1a95d273463a87516365510dbffcaf3d2.tar.gz
rneovim-3f3de9b1a95d273463a87516365510dbffcaf3d2.tar.bz2
rneovim-3f3de9b1a95d273463a87516365510dbffcaf3d2.zip
Merge #8183 'build/msvc: Fix functional tests'
MSBuild still returns a non-zero exit code because it detects the word "error" in the stdout which is caused by some of the test names such as api/buf {get,set,del}_line get_line : out-of-bounds is an error. CMake mailing list thread: https://cmake.org/pipermail/cmake-developers/2015-October/026775.html There isn't any good solution for it, so I modified the build script to detect the error message printed by RunTests.cmake.
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/077_mf_hash_grow_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/legacy/077_mf_hash_grow_spec.lua b/test/functional/legacy/077_mf_hash_grow_spec.lua
index c692127213..4719a3ecbf 100644
--- a/test/functional/legacy/077_mf_hash_grow_spec.lua
+++ b/test/functional/legacy/077_mf_hash_grow_spec.lua
@@ -18,7 +18,8 @@ describe('mf_hash_grow()', function()
setup(clear)
-- Check to see if cksum exists, otherwise skip the test
- if os.execute('which cksum 2>&1 > /dev/null') ~= 0 then
+ local null = helpers.iswin() and 'nul' or '/dev/null'
+ if os.execute('cksum --help >' .. null .. ' 2>&1') ~= 0 then
pending('was not tested because cksum was not found', function() end)
else
it('is working', function()