Regression

lldb-api.functionalities/data-formatter/parray.TestPrintArray.py (from lldb-api)

Failing for the past 1 build (Since #1866 )
Took 15 sec.

Stacktrace

Script:
--
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/copied-python /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --codesign-identity lldb_codesign --arch x86_64 --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex -t --env TERM=vt100 --env LLVM_LIBS_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./lib --inferior-env ASAN_OPTIONS=detect_stack_use_after_return=1 --inferior-env DYLD_INSERT_LIBRARIES=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib --arch x86_64 --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex --lldb-module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/lldb --compiler /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/clang --dsymutil /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/dsymutil --llvm-tools-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin --lldb-libs-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./lib /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray -p TestPrintArray.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 13.0.99 (http://labmaster3.local/git/llvm-project.git revision cdd1adfb7d5d5048a7fdedc441e75db019fbb0b5)
  clang revision cdd1adfb7d5d5048a7fdedc441e75db019fbb0b5
  llvm revision cdd1adfb7d5d5048a7fdedc441e75db019fbb0b5
Skipping the following test categories: ['darwin-log', 'libstdcxx', 'dwo', 'llgs', 'fork']

--
Command Output (stderr):
--
Change dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray
runCmd: settings clear -all
output: 

runCmd: settings set symbols.enable-external-lookup false
output: 

runCmd: settings set target.inherit-tcc true
output: 

runCmd: settings set target.detach-on-error false
output: 

runCmd: settings set target.auto-apply-fixits false
output: 

runCmd: settings set plugin.process.gdb-remote.packet-timeout 60
output: 

runCmd: settings set symbols.clang-modules-cache-path "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api"
output: 

runCmd: settings set use-color false
output: 

runCmd: setting set target.prefer-dynamic-value no-dynamic-values
output: 

runCmd: settings set target.env-vars ASAN_OPTIONS=detect_stack_use_after_return=1 DYLD_INSERT_LIBRARIES=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: file /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/data-formatter/parray/TestPrintArray.test_print_array_dsym/a.out
output: Current executable set to '/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/data-formatter/parray/TestPrintArray.test_print_array_dsym/a.out' (x86_64).


runCmd: breakpoint set -f "main.cpp" -l 18
output: Breakpoint 1: where = a.out`main + 115 at main.cpp:18:3, address = 0x0000000100000e53


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: run
output: Process 64183 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100000e53 a.out`main(argc=1, argv=0x00007ffeefbff8b8) at main.cpp:18:3
   15  	  int* data = alloc<int>(5, [] (size_t idx) -> int {
   16  	    return 2 * idx + 1;
   17  	  });
-> 18  	  return 0; // break here
    	  ^
   19  	}
   20
Process 64183 launched: '/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/data-formatter/parray/TestPrintArray.test_print_array_dsym/a.out' (x86_64)


runCmd: thread list
output: Process 64183 stopped
* thread #1: tid = 0x60ed93, 0x0000000100000e53 a.out`main(argc=1, argv=0x00007ffeefbff8b8) at main.cpp:18:3, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1


Ran command:
"thread list"

Got output:
Process 64183 stopped
* thread #1: tid = 0x60ed93, 0x0000000100000e53 a.out`main(argc=1, argv=0x00007ffeefbff8b8) at main.cpp:18:3, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1

Expecting sub string: "stopped" (was found)
Expecting sub string: "stop reason = breakpoint" (was found)

Adding tearDown hook:         def cleanup():
            self.runCmd('type format clear', check=False)
            self.runCmd('type summary clear', check=False)
            self.runCmd('type synth clear', check=False)


runCmd: expr --element-count 3 -- data
output: (int *) $0 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}


Ran command:
"expr --element-count 3 -- data"

Got output:
(int *) $0 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}

Expecting sub string: "[0] = 1" (was found)
Expecting sub string: "[1] = 3" (was found)
Expecting sub string: "[2] = 5" (was found)

runCmd: expr data
output: (int *) $1 = 0x0000603000001780


Ran command:
"expr data"

Got output:
(int *) $1 = 0x0000603000001780

Expecting sub string: "int *" (was found)
Expecting sub string: "$" (was found)
Expecting sub string: "0x" (was found)

runCmd: expr -f binary --element-count 0 -- data
output: (int *) $2 = 0b0000000000000000011000000011000000000000000000000001011110000000


Ran command:
"expr -f binary --element-count 0 -- data"

Got output:
(int *) $2 = 0b0000000000000000011000000011000000000000000000000001011110000000

Expecting sub string: "int *" (was found)
Expecting sub string: "$" (was found)
Expecting sub string: "0b" (was found)

runCmd: expr -f hex --element-count 3 -- data
output: (int *) $3 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}


Ran command:
"expr -f hex --element-count 3 -- data"

Got output:
(int *) $3 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}

Expecting sub string: "[0] = 0x" (was found)
Expecting sub string: "1" (was found)
Expecting sub string: "[1] = 0x" (was found)
Expecting sub string: "3" (was found)
Expecting sub string: "[2] = 0x" (was found)
Expecting sub string: "5" (was found)

runCmd: expr -f binary --element-count 2 -- data
output: (int *) $4 = 0x0000603000001780 {
  (int) [0] = 0b00000000000000000000000000000001
  (int) [1] = 0b00000000000000000000000000000011
}


Ran command:
"expr -f binary --element-count 2 -- data"

Got output:
(int *) $4 = 0x0000603000001780 {
  (int) [0] = 0b00000000000000000000000000000001
  (int) [1] = 0b00000000000000000000000000000011
}

Expecting sub string: "int *" (was found)
Expecting sub string: "$" (was found)
Expecting sub string: "0x" (was found)
Expecting sub string: "[0] = 0b" (was found)
Expecting sub string: "1" (was found)
Expecting sub string: "[1] = 0b" (was found)
Expecting sub string: "11" (was found)

runCmd: parray 3 data
output: (int *) $5 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}


Ran command:
"parray 3 data"

Got output:
(int *) $5 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}

Expecting sub string: "[0] = 1" (was found)
Expecting sub string: "[1] = 3" (was found)
Expecting sub string: "[2] = 5" (was found)

runCmd: parray `1 + 1 + 1` data
output: (int *) $7 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}


Ran command:
"parray `1 + 1 + 1` data"

Got output:
(int *) $7 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}

Expecting sub string: "[0] = 1" (was found)
Expecting sub string: "[1] = 3" (was found)
Expecting sub string: "[2] = 5" (was found)

runCmd: parray `data[1]` data
output: (int *) $9 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}


Ran command:
"parray `data[1]` data"

Got output:
(int *) $9 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}

Expecting sub string: "[0] = 1" (was found)
Expecting sub string: "[1] = 3" (was found)
Expecting sub string: "[2] = 5" (was found)

runCmd: parray/x 3 data
output: (int *) $10 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}


Ran command:
"parray/x 3 data"

Got output:
(int *) $10 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}

Expecting sub string: "[0] = 0x" (was found)
Expecting sub string: "1" (was found)
Expecting sub string: "[1] = 0x" (was found)
Expecting sub string: "3" (was found)
Expecting sub string: "[2] = 0x" (was found)
Expecting sub string: "5" (was found)

runCmd: parray/x `data[1]` data
output: (int *) $12 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}


Ran command:
"parray/x `data[1]` data"

Got output:
(int *) $12 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}

Expecting sub string: "[0] = 0x" (was found)
Expecting sub string: "1" (was found)
Expecting sub string: "[1] = 0x" (was found)
Expecting sub string: "3" (was found)
Expecting sub string: "[2] = 0x" (was found)
Expecting sub string: "5" (was found)

runCmd: expr --element-count 10 -- 123
check of return status not required
runCmd failed!
error: expression cannot be used with --element-count as it does not refer to a pointer


Ran command:
"expr --element-count 10 -- 123"

Got output:
error: expression cannot be used with --element-count as it does not refer to a pointer

Expecting sub string: "expression cannot be used with --element-count as it does not refer to a pointer" (was found)

runCmd: expr --element-count 10 -- (void*)123
check of return status not required
runCmd failed!
error: expression cannot be used with --element-count as it refers to a pointer to void


Ran command:
"expr --element-count 10 -- (void*)123"

Got output:
error: expression cannot be used with --element-count as it refers to a pointer to void

Expecting sub string: "expression cannot be used with --element-count as it refers to a pointer to void" (was found)

runCmd: parray data
check of return status not required
runCmd failed!
error: invalid element count 'data'


Ran command:
"parray data"

Got output:
error: invalid element count 'data'

Expecting sub string: "invalid element count 'data'" (was found)

runCmd: parray data data
check of return status not required
runCmd failed!
error: invalid element count 'data'


Ran command:
"parray data data"

Got output:
error: invalid element count 'data'

Expecting sub string: "invalid element count 'data'" (was found)

runCmd: parray
check of return status not required
runCmd failed!
error: Not enough arguments provided; you need at least 1 arguments to use this alias.
error: 'parray' is not a valid command.


Ran command:
"parray"

Got output:
error: Not enough arguments provided; you need at least 1 arguments to use this alias.
error: 'parray' is not a valid command.

Expecting sub string: "Not enough arguments provided" (was found)

<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10e53dc60> >>: success

Executing tearDown hook:         def cleanup():
            self.runCmd('type format clear', check=False)
            self.runCmd('type summary clear', check=False)
            self.runCmd('type synth clear', check=False)


runCmd: type format clear
check of return status not required
output: 

runCmd: type summary clear
check of return status not required
output: 

runCmd: type synth clear
check of return status not required
output: 

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-x86_64) :: test_print_array_dsym (TestPrintArray.PrintArrayTestCase)
runCmd: settings clear -all
output: 

runCmd: settings set symbols.enable-external-lookup false
output: 

runCmd: settings set target.inherit-tcc true
output: 

runCmd: settings set target.detach-on-error false
output: 

runCmd: settings set target.auto-apply-fixits false
output: 

runCmd: settings set plugin.process.gdb-remote.packet-timeout 60
output: 

runCmd: settings set symbols.clang-modules-cache-path "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api"
output: 

runCmd: settings set use-color false
output: 

runCmd: setting set target.prefer-dynamic-value no-dynamic-values
output: 

runCmd: settings set target.env-vars ASAN_OPTIONS=detect_stack_use_after_return=1 DYLD_INSERT_LIBRARIES=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

runCmd: file /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/data-formatter/parray/TestPrintArray.test_print_array_dwarf/a.out
output: Current executable set to '/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/data-formatter/parray/TestPrintArray.test_print_array_dwarf/a.out' (x86_64).


runCmd: breakpoint set -f "main.cpp" -l 18
output: Breakpoint 1: where = a.out`main + 115 at main.cpp:18:3, address = 0x0000000100000e53


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: run
output: Process 64221 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100000e53 a.out`main(argc=1, argv=0x00007ffeefbff8b8) at main.cpp:18:3
   15  	  int* data = alloc<int>(5, [] (size_t idx) -> int {
   16  	    return 2 * idx + 1;
   17  	  });
-> 18  	  return 0; // break here
    	  ^
   19  	}
   20
Process 64221 launched: '/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/data-formatter/parray/TestPrintArray.test_print_array_dwarf/a.out' (x86_64)


runCmd: thread list
output: Process 64221 stopped
* thread #1: tid = 0x60ee53, 0x0000000100000e53 a.out`main(argc=1, argv=0x00007ffeefbff8b8) at main.cpp:18:3, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1


Ran command:
"thread list"

Got output:
Process 64221 stopped
* thread #1: tid = 0x60ee53, 0x0000000100000e53 a.out`main(argc=1, argv=0x00007ffeefbff8b8) at main.cpp:18:3, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1

Expecting sub string: "stopped" (was found)
Expecting sub string: "stop reason = breakpoint" (was found)

Adding tearDown hook:         def cleanup():
            self.runCmd('type format clear', check=False)
            self.runCmd('type summary clear', check=False)
            self.runCmd('type synth clear', check=False)


runCmd: expr --element-count 3 -- data
output: (int *) $0 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}


Ran command:
"expr --element-count 3 -- data"

Got output:
(int *) $0 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}

Expecting sub string: "[0] = 1" (was found)
Expecting sub string: "[1] = 3" (was found)
Expecting sub string: "[2] = 5" (was found)

runCmd: expr data
output: (int *) $1 = 0x0000603000001780


Ran command:
"expr data"

Got output:
(int *) $1 = 0x0000603000001780

Expecting sub string: "int *" (was found)
Expecting sub string: "$" (was found)
Expecting sub string: "0x" (was found)

runCmd: expr -f binary --element-count 0 -- data
output: (int *) $2 = 0b0000000000000000011000000011000000000000000000000001011110000000


Ran command:
"expr -f binary --element-count 0 -- data"

Got output:
(int *) $2 = 0b0000000000000000011000000011000000000000000000000001011110000000

Expecting sub string: "int *" (was found)
Expecting sub string: "$" (was found)
Expecting sub string: "0b" (was found)

runCmd: expr -f hex --element-count 3 -- data
output: (int *) $3 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}


Ran command:
"expr -f hex --element-count 3 -- data"

Got output:
(int *) $3 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}

Expecting sub string: "[0] = 0x" (was found)
Expecting sub string: "1" (was found)
Expecting sub string: "[1] = 0x" (was found)
Expecting sub string: "3" (was found)
Expecting sub string: "[2] = 0x" (was found)
Expecting sub string: "5" (was found)

runCmd: expr -f binary --element-count 2 -- data
output: (int *) $4 = 0x0000603000001780 {
  (int) [0] = 0b00000000000000000000000000000001
  (int) [1] = 0b00000000000000000000000000000011
}


Ran command:
"expr -f binary --element-count 2 -- data"

Got output:
(int *) $4 = 0x0000603000001780 {
  (int) [0] = 0b00000000000000000000000000000001
  (int) [1] = 0b00000000000000000000000000000011
}

Expecting sub string: "int *" (was found)
Expecting sub string: "$" (was found)
Expecting sub string: "0x" (was found)
Expecting sub string: "[0] = 0b" (was found)
Expecting sub string: "1" (was found)
Expecting sub string: "[1] = 0b" (was found)
Expecting sub string: "11" (was found)

runCmd: parray 3 data
output: (int *) $5 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}


Ran command:
"parray 3 data"

Got output:
(int *) $5 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}

Expecting sub string: "[0] = 1" (was found)
Expecting sub string: "[1] = 3" (was found)
Expecting sub string: "[2] = 5" (was found)

runCmd: parray `1 + 1 + 1` data
output: (int *) $7 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}


Ran command:
"parray `1 + 1 + 1` data"

Got output:
(int *) $7 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}

Expecting sub string: "[0] = 1" (was found)
Expecting sub string: "[1] = 3" (was found)
Expecting sub string: "[2] = 5" (was found)

runCmd: parray `data[1]` data
output: (int *) $9 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}


Ran command:
"parray `data[1]` data"

Got output:
(int *) $9 = 0x0000603000001780 {
  (int) [0] = 1
  (int) [1] = 3
  (int) [2] = 5
}

Expecting sub string: "[0] = 1" (was found)
Expecting sub string: "[1] = 3" (was found)
Expecting sub string: "[2] = 5" (was found)

runCmd: parray/x 3 data
output: (int *) $10 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}


Ran command:
"parray/x 3 data"

Got output:
(int *) $10 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}

Expecting sub string: "[0] = 0x" (was found)
Expecting sub string: "1" (was found)
Expecting sub string: "[1] = 0x" (was found)
Expecting sub string: "3" (was found)
Expecting sub string: "[2] = 0x" (was found)
Expecting sub string: "5" (was found)

runCmd: parray/x `data[1]` data
output: (int *) $12 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}


Ran command:
"parray/x `data[1]` data"

Got output:
(int *) $12 = 0x0000603000001780 {
  (int) [0] = 0x00000001
  (int) [1] = 0x00000003
  (int) [2] = 0x00000005
}

Expecting sub string: "[0] = 0x" (was found)
Expecting sub string: "1" (was found)
Expecting sub string: "[1] = 0x" (was found)
Expecting sub string: "3" (was found)
Expecting sub string: "[2] = 0x" (was found)
Expecting sub string: "5" (was found)

runCmd: expr --element-count 10 -- 123
check of return status not required
runCmd failed!
error: expression cannot be used with --element-count as it does not refer to a pointer


Ran command:
"expr --element-count 10 -- 123"

Got output:
error: expression cannot be used with --element-count as it does not refer to a pointer

Expecting sub string: "expression cannot be used with --element-count as it does not refer to a pointer" (was found)

runCmd: expr --element-count 10 -- (void*)123
check of return status not required
runCmd failed!
error: expression cannot be used with --element-count as it refers to a pointer to void


Ran command:
"expr --element-count 10 -- (void*)123"

Got output:
error: expression cannot be used with --element-count as it refers to a pointer to void

Expecting sub string: "expression cannot be used with --element-count as it refers to a pointer to void" (was found)

runCmd: parray data
check of return status not required
runCmd failed!
error: invalid element count 'data'


Ran command:
"parray data"

Got output:
error: invalid element count 'data'

Expecting sub string: "invalid element count 'data'" (was found)

runCmd: parray data data
check of return status not required
runCmd failed!
error: invalid element count 'data'


Ran command:
"parray data data"

Got output:
error: invalid element count 'data'

Expecting sub string: "invalid element count 'data'" (was found)

runCmd: parray
check of return status not required
runCmd failed!
error: Not enough arguments provided; you need at least 1 arguments to use this alias.
error: 'parray' is not a valid command.


Ran command:
"parray"

Got output:
error: Not enough arguments provided; you need at least 1 arguments to use this alias.
error: 'parray' is not a valid command.

Expecting sub string: "Not enough arguments provided" (was found)

<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10df71cf0> >>: success

Executing tearDown hook:         def cleanup():
            self.runCmd('type format clear', check=False)
            self.runCmd('type summary clear', check=False)
            self.runCmd('type synth clear', check=False)


runCmd: type format clear
check of return status not required
output: 

runCmd: type summary clear
check of return status not required
output: 

runCmd: type synth clear
check of return status not required
output: 

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-x86_64) :: test_print_array_dwarf (TestPrintArray.PrintArrayTestCase)
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-x86_64) :: test_print_array_dwo (TestPrintArray.PrintArrayTestCase) (test case does not fall in any category of interest for this run) 
runCmd: settings clear -all
output: 

runCmd: settings set symbols.enable-external-lookup false
output: 

runCmd: settings set target.inherit-tcc true
output: 

runCmd: settings set target.detach-on-error false
output: 

runCmd: settings set target.auto-apply-fixits false
output: 

runCmd: settings set plugin.process.gdb-remote.packet-timeout 60
output: 

runCmd: settings set symbols.clang-modules-cache-path "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api"
output: 

runCmd: settings set use-color false
output: 

runCmd: setting set target.prefer-dynamic-value no-dynamic-values
output: 

runCmd: settings set target.env-vars ASAN_OPTIONS=detect_stack_use_after_return=1 DYLD_INSERT_LIBRARIES=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/13.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
output: 

FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang-x86_64) :: test_print_array_gmodules (TestPrintArray.PrintArrayTestCase)
Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/tools/lldb/test
======================================================================
ERROR: test_print_array_gmodules (TestPrintArray.PrintArrayTestCase)
   Test that expr -Z works
----------------------------------------------------------------------
Error when building test subject.

Build Command:
make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray -C /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/functionalities/data-formatter/parray/TestPrintArray.test_print_array_gmodules -I /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray -I /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/Makefile MAKE_DSYM=NO MAKE_GMODULES=YES  ARCH=x86_64 CC="/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang" DSYMUTIL="/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/dsymutil"  CLANG_MODULE_CACHE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api 

Build Command Output:
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/clang  -fmodules -gmodules -fmodules-cache-path=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api -gmodules -fcxx-modules -std=c++11 -g -O0 -fno-builtin -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk" -arch x86_64  -I/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../../include -I/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray -I/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h  -fno-limit-debug-info  -fmodules -gmodules -fmodules-cache-path=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api -gmodules -fcxx-modules    --driver-mode=g++ -MT main.o -MD -MP -MF main.d -c -o main.o /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp
In module 'std' imported from /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:1:
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/allocator_traits.h:73:48: error: missing '#include "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/pointer_traits.h"'; 'pointer_traits<_Tp *>' must be defined before it is used
    using type _LIBCPP_NODEBUG_TYPE = typename pointer_traits<_Ptr>::template rebind<void>;
                                               ^
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/allocator_traits.h:234:35: note: in instantiation of template class 'std::__void_pointer<(lambda at /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29) *, std::allocator<(lambda at /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29)>, false>' requested here
    using void_pointer = typename __void_pointer<pointer, allocator_type>::type;
                                  ^
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/allocator_traits.h:354:48: note: in instantiation of template class 'std::allocator_traits<std::allocator<(lambda at /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29)>>' requested here
    using type _LIBCPP_NODEBUG_TYPE = typename _Traits::template rebind_alloc<_Tp>;
                                               ^
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/functional:1790:26: note: in instantiation of template class 'std::__rebind_alloc_helper<std::allocator_traits<std::allocator<(lambda at /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29)>>, std::__function::__func<(lambda at /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29), std::allocator<(lambda at /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29)>, int (unsigned long)>>' requested here
        typedef typename __rebind_alloc_helper<__alloc_traits, _Fun>::type
                         ^
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/functional:1816:11: note: in instantiation of function template specialization 'std::__function::__value_func<int (unsigned long)>::__value_func<(lambda at /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29), std::allocator<(lambda at /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29)>>' requested here
        : __value_func(_VSTD::forward<_Fp>(__f), allocator<_Fp>()) {}
          ^
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/functional:2512:50: note: in instantiation of function template specialization 'std::__function::__value_func<int (unsigned long)>::__value_func<(lambda at /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29), void>' requested here
function<_Rp(_ArgTypes...)>::function(_Fp __f) : __f_(_VSTD::move(__f)) {}
                                                 ^
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29: note: in instantiation of function template specialization 'std::function<int (unsigned long)>::function<(lambda at /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray/main.cpp:15:29), void>' requested here
  int* data = alloc<int>(5, [] (size_t idx) -> int {
                            ^
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/bin/../include/c++/v1/__memory/pointer_traits.h:135:29: note: definition here is not reachable
struct _LIBCPP_TEMPLATE_VIS pointer_traits<_Tp*>
                            ^
1 error generated.
make: *** [main.o] Error 1

Test Directory:
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/data-formatter/parray
----------------------------------------------------------------------
Ran 4 tests in 14.256s

RESULT: FAILED (2 passes, 0 failures, 1 errors, 1 skipped, 0 expected failures, 0 unexpected successes)

--