[Bug 48316] New: TestMultilineNavigation.py failures on FreeBSD

Bug ID 48316
Summary TestMultilineNavigation.py failures on FreeBSD
Product lldb
Version unspecified
Hardware PC
OS FreeBSD
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter mgorny@gentoo.org
CC emaste@freebsd.org, jdevlieghere@apple.com, llvm-bugs@lists.llvm.org, n54@gmx.com

Both tests from TestMultilineNavigation.py fail on FreeBSD.  It is curious
because the exact same procedure as included in the test works fine in an
interactive session (as long as it's run on a pty).  Unless I'm mistaken, the
problem here is that up/down arrow codes are interpreted literally rather than
as keys.  I've suspected that pexpect/ptyprocess could be misbehaving but FWICS
they correctly spawn the process with a pty.

$ /usr/local/bin/python3.7
/home/mgorny/llvm-project/llvm/tools/lldb/test/API/dotest.py -S nm -u CXXFLAGS
-u CFLAGS --env ARCHIVER=/usr/bin/ar --env OBJCOPY=/usr/bin/objcopy --env
LLVM_LIBS_DIR=/home/mgorny/llvm-project/_build/./lib --arch x86_64 --build-dir
/home/mgorny/llvm-project/_build/lldb-test-build.noindex -s
/home/mgorny/llvm-project/_build/lldb-test-traces --lldb-module-cache-dir
/home/mgorny/llvm-project/_build/lldb-test-build.noindex/module-cache-lldb/lldb-api
--clang-module-cache-dir
/home/mgorny/llvm-project/_build/lldb-test-build.noindex/module-cache-clang/lldb-api
--executable /home/mgorny/llvm-project/_build/./bin/lldb --compiler
/home/mgorny/llvm-project/_build/./bin/clang --dsymutil
/home/mgorny/llvm-project/_build/./bin/dsymutil --filecheck
/home/mgorny/llvm-project/_build/./bin/FileCheck --yaml2obj
/home/mgorny/llvm-project/_build/./bin/yaml2obj --lldb-libs-dir
/home/mgorny/llvm-project/_build/./lib
/usr/home/mgorny/llvm-project/lldb/test/API/commands/expression/multiline-navigation
-p TestMultilineNavigation.py
lldb version 12.0.0
Libc++ tests will not be run because: Don't know how to build with libc++ on
freebsd
libstdcxx tests will not be run because: Don't know how to build with libstdcxx
on freebsd
Skipping following debug info categories: ['dwo', 'dsym', 'gmodules']
objc tests will be skipped because of unsupported platform

Session logs for test failures/errors/unexpected successes will go into
directory '/home/mgorny/llvm-project/_build/lldb-test-traces'
FAIL: LLDB (/home/mgorny/llvm-project/_build/bin/clang-x86_64) ::
test_nav_arrow_down (TestMultilineNavigation.TestCase)
FAIL: LLDB (/home/mgorny/llvm-project/_build/bin/clang-x86_64) ::
test_nav_arrow_up (TestMultilineNavigation.TestCase)