2 # UNSUPPORTED: system-windows
3 # RUN: %lldb -b -o 'settings set interpreter.stop-command-source-on-error false' -s %s 2>&1 | FileCheck %s
5 target create -l "ls" /bin/ls
7 # CHECK: * target #0 (ls): /bin/ls
9 script lldb.target.SetLabel("")
11 # CHECK: * target #0: /bin/ls
13 target create -l "cat" /bin/cat
15 # CHECK: target #0: /bin/ls
16 # CHECK-NEXT: * target #1 (cat): /bin/cat
18 target create -l "cat" /bin/cat
19 # CHECK: Cannot use label 'cat' since it's set in target #1.
21 target create -l 42 /bin/cat
22 # CHECK: error: Cannot use integer as target label.
25 # CHECK: * target #0: /bin/ls
26 # CHECK-NEXT: target #1 (cat): /bin/cat
29 # CHECK: target #0: /bin/ls
30 # CHECK-NEXT: * target #1 (cat): /bin/cat
32 script lldb.target.GetLabel()
35 script lldb.debugger.GetTargetAtIndex(0).SetLabel('Not cat')
39 # CHECK: target #0 (Not cat): /bin/ls
40 # CHECK-NEXT: * target #1 (cat): /bin/cat