build/msvc: Fix check for cksum on Windows

This commit is contained in:
b-r-o-c-k
2018-03-26 10:54:44 -05:00
parent afe6b4881f
commit ab6051331c

View File

@@ -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()