Skip to content
Snippets Groups Projects
Commit 5ae85d7e authored by Nick Zavaritsky's avatar Nick Zavaritsky
Browse files

gh-42: Use jit.os instead of uname in test

parent 3c4cd81a
No related branches found
No related tags found
No related merge requests found
...@@ -10,37 +10,7 @@ fiber = require 'fiber' ...@@ -10,37 +10,7 @@ fiber = require 'fiber'
PERIOD = 0.03 PERIOD = 0.03
--- ---
... ...
--# setopt delimiter ';' if jit.os ~= 'Linux' then PERIOD = 1.5 end
ffi = require 'ffi'
ffi.cdef[[int uname(char *buf)]]
function uname()
local name = ffi.new('char[?]', 4096)
ffi.C.uname(name)
return ffi.string(name)
end
if uname() ~= 'Linux' then
PERIOD = 1.5
end
---
...
--# setopt delimiter ''
ffi = require 'ffi'
ffi.cdef[[int uname(char *buf)]]
function uname()
local name = ffi.new('char[?]', 4096)
ffi.C.uname(name)
return ffi.string(name)
end
if uname() ~= 'Linux' then
PERIOD = 1.5
end
--- ---
... ...
space = box.schema.space.create('snapshot_daemon') space = box.schema.space.create('snapshot_daemon')
......
...@@ -4,23 +4,7 @@ fiber = require 'fiber' ...@@ -4,23 +4,7 @@ fiber = require 'fiber'
PERIOD = 0.03 PERIOD = 0.03
if jit.os ~= 'Linux' then PERIOD = 1.5 end
--# setopt delimiter ';'
ffi = require 'ffi'
ffi.cdef[[int uname(char *buf)]]
function uname()
local name = ffi.new('char[?]', 4096)
ffi.C.uname(name)
return ffi.string(name)
end
if uname() ~= 'Linux' then
PERIOD = 1.5
end
--# setopt delimiter ''
space = box.schema.space.create('snapshot_daemon') space = box.schema.space.create('snapshot_daemon')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment