llvm / llvm/llvm-project

some lldb tests ignore LLDB_TEST_TRIPLE/LLDB_TEST_COMPILER

Open
#203,090 1 comment 0 reactions 0 assignees View on GitHub
lldb test-suite
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Building LLVM with a default triple which isn't the host triple, the following tests fail because they expect the just-built clang can build programs without specifying any arguments:

```
lldb-shell :: Breakpoint/breakpoint-command.test
lldb-shell :: Breakpoint/dummy-target.test
lldb-shell :: Driver/TestConvenienceVariables.test
lldb-shell :: Expr/TestAnonNamespaceParamFunc.cpp
lldb-shell :: Expr/TestExprWithSideEffect.cpp
lldb-shell :: Expr/TestExprWithSideEffectOnConvenienceVar.cpp
lldb-shell :: Settings/TestCxxFrameFormatObjC.test
lldb-shell :: Settings/TestFrameFormatName.test
lldb-shell :: SymbolFile/NativePDB/lookup-by-types.cpp
lldb-shell :: SymbolFile/OnDemand/source-breakpoint.test
lldb-shell :: SymbolFile/OnDemand/symbolic-breakpoint.test
```

Most lldb tests respect LLDB_TEST_TRIPLE/LLDB_TEST_COMPILER, but these don't.

----------------

There are also a few other tests which apparently respect LLDB_TEST_COMPILER, but not LLDB_TEST_TRIPLE:

```
lldb-api :: functionalities/scripted_process/TestScriptedProcess.py
lldb-api :: lang/c/calling-conventions/TestCCallingConventions.py
lldb-api :: tools/lldb-dap/stackTraceDisassemblyDisplay/TestDAP_stackTraceDisassemblyDisplay.py
```

Contributor guide

Open the contributing guide

Research direction

Start by running the listed lldb-shell and lldb-api tests with a non-host default triple, then inspect the named Breakpoint, Expr, Settings, SymbolFile, and Python test files. Compare how nearby LLDB tests consume LLDB_TEST_TRIPLE and LLDB_TEST_COMPILER. Done means every listed test respects the relevant settings and passes under the non-host configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
compilers, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.