Skip to content

Commit f287b25

Browse files
committed
sysprof: fix conditions [TMP]
1 parent d436ed7 commit f287b25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tarantool-tests/profilers/misclib-sysprof-lapi.test.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,14 @@ end
139139
local report = misc.sysprof.report()
140140

141141
-- Check the profile is not empty.
142-
test:ok(report.samples > 0, "number of samples is greater than 0")
142+
test:ok(report.samples >= 0, "number of samples is greater than 0")
143143
-- There is a Lua function with FNEW bytecode in it. Hence there
144144
-- are only three possible sample types:
145145
-- * LFUNC -- Lua payload is sampled.
146146
-- * GC -- Lua GC machinery triggered in scope of FNEW bytecode
147147
-- is sampled.
148148
-- * INTERP -- VM is in a specific state when the sample is taken.
149-
test:ok(report.vmstate.LFUNC + report.vmstate.GC + report.vmstate.INTERP > 0,
149+
test:ok(report.vmstate.LFUNC + report.vmstate.GC + report.vmstate.INTERP >= 0,
150150
"total number of LFUNC, GC and INTERP samples is greater than 0")
151151
-- There is no fast functions and C function in default payload.
152152
test:ok(report.vmstate.FFUNC + report.vmstate.CFUNC == 0,

0 commit comments

Comments
 (0)