[Lldb-commits] [lldb] [lldb] Fix settings set to accept values starting with dash (PR #176076)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 14 17:56:38 PST 2026
MkDev11 wrote:
=== Testing fix for LLDB issue #171493 ===
Test 1: Basic case (no options)
Input: 'target.run-args' '-foo' 'bar'
After fix: '--' 'target.run-args' '-foo' 'bar'
Expected '--' at index 0, actual index: 0
✓ PASS
Test 2: With -g option
Input: '-g' 'target.run-args' '-foo' 'bar'
After fix: '-g' '--' 'target.run-args' '-foo' 'bar'
Expected '--' at index 1, actual index: 1
✓ PASS
Test 3: With -f option
Input: '-f' 'target.run-args' '-foo'
After fix: '-f' '--' 'target.run-args' '-foo'
Expected '--' at index 1, actual index: 1
✓ PASS
Test 4: With multiple options (-g -f)
Input: '-g' '-f' 'target.run-args' '-foo'
After fix: '-g' '-f' '--' 'target.run-args' '-foo'
Expected '--' at index 2, actual index: 2
✓ PASS
Test 5: Value with double dash (--help)
Input: 'target.run-args' '--help'
After fix: '--' 'target.run-args' '--help'
Expected '--' at index 0, actual index: 0
✓ PASS
Test 6: Multiple dash values
Input: 'target.run-args' '-a' '-b' '-c'
After fix: '--' 'target.run-args' '-a' '-b' '-c'
Expected '--' at index 0, actual index: 0
✓ PASS
Test 7: Single dash value
Input: 'target.run-args' '-'
After fix: '--' 'target.run-args' '-'
Expected '--' at index 0, actual index: 0
✓ PASS
=== All tests completed ===
https://github.com/llvm/llvm-project/pull/176076
More information about the lldb-commits
mailing list