Skip to content

Commit e7f7016

Browse files
mkokryashkinigormunkin
authored andcommitted
test: disable interactive mode assertions on BSD
Tarantool interactive mode misbehaviour has been found on FreeBSD (for more info see tarantool/tarantool#6231). Hence, all assertions using interactive mode are skipped on FreeBSD until the mentioned issue is resolved. Resolves tarantool/tarantool#5970 Part of tarantool/tarantool#4473 Relates to tarantool/tarantool#6231 Reviewed-by: Sergey Kaplun <[email protected]> Reviewed-by: Igor Munkin <[email protected]> Signed-off-by: Igor Munkin <[email protected]>
1 parent b3418bc commit e7f7016

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed

test/lua-Harness-tests/241-standalone.t

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,26 @@ f = io.popen(cmd)
112112
equals(f:read'*l', 'Hello World', "redirect")
113113
f:close()
114114

115-
cmd = lua .. " -i hello-241.lua < hello-241.lua 2>&1"
116-
f = io.popen(cmd)
117-
matches(f:read'*l', banner, "-i")
118-
if ujit then
119-
matches(f:read'*l', '^JIT:')
120-
end
121-
if ravi then
122-
matches(f:read'*l', '^Copyright %(C%)')
123-
matches(f:read'*l', '^Portions Copyright %(C%)')
124-
matches(f:read'*l', '^Options')
125-
end
126-
if _TARANTOOL then
127-
matches(f:read'*l', "^type 'help' for interactive help")
115+
-- FIXME: Tarantool interactive mode misbehaviour on
116+
-- FreeBSD (for more info, see #6231).
117+
if jit.os ~= 'BSD' then
118+
cmd = lua .. " -i hello-241.lua < hello-241.lua 2>&1"
119+
f = io.popen(cmd)
120+
matches(f:read'*l', banner, "-i")
121+
if ujit then
122+
matches(f:read'*l', '^JIT:')
123+
end
124+
if ravi then
125+
matches(f:read'*l', '^Copyright %(C%)')
126+
matches(f:read'*l', '^Portions Copyright %(C%)')
127+
matches(f:read'*l', '^Options')
128+
end
129+
if _TARANTOOL then
130+
matches(f:read'*l', "^type 'help' for interactive help")
131+
end
132+
equals(f:read'*l', 'Hello World')
133+
f:close()
128134
end
129-
equals(f:read'*l', 'Hello World')
130-
f:close()
131135

132136
cmd = lua .. [[ -e"a=1" -e "print(a)"]]
133137
f = io.popen(cmd)
@@ -186,10 +190,14 @@ equals(f:read'*l', '1', "-e & script")
186190
equals(f:read'*l', 'Hello World')
187191
f:close()
188192

189-
cmd = lua .. [[ -e"a=1" -i < hello-241.lua 2>&1]]
190-
f = io.popen(cmd)
191-
matches(f:read'*l', banner, "-e & -i")
192-
f:close()
193+
-- FIXME: Tarantool interactive mode misbehaviour on
194+
-- FreeBSD (for more info, see #6231).
195+
if jit.os ~= 'BSD' then
196+
cmd = lua .. [[ -e"a=1" -i < hello-241.lua 2>&1]]
197+
f = io.popen(cmd)
198+
matches(f:read'*l', banner, "-e & -i")
199+
f:close()
200+
end
193201

194202
cmd = lua .. [[ -e "?syntax error?" 2>&1]]
195203
f = io.popen(cmd)

0 commit comments

Comments
 (0)