Regression

Test Clang 9.0.0 / lldb-api.commands/expression/top-level.TestTopLevelExprs.py (from lldb-api)

Failing for the past 1 build (Since #5041 )
Took 1.5 sec.

Stacktrace

Script:
--
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/bin/python3.8 /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/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-matrix/lldb-build/lldb-test-build.noindex -t --env TERM=vt100 --skip-category gmodules --skip-category watchpoint --skip-category llgs --skip-category debugserver --arch=x86_64 --env LLVM_LIBS_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./lib --env LLVM_INCLUDE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/include --env LLVM_TOOLS_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin --hermetic-libcxx --arch x86_64 --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex --lldb-module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/lldb --compiler /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang --dsymutil /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil --llvm-tools-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin --lldb-libs-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./lib /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level -p TestTopLevelExprs.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 16.0.99git (http://labmaster3.local/git/llvm-project.git revision 807b8cb06ca05228f3ecb4709f4f4141748d2ca9)
  clang revision 807b8cb06ca05228f3ecb4709f4f4141748d2ca9
  llvm revision 807b8cb06ca05228f3ecb4709f4f4141748d2ca9
Skipping the following test categories: ['gmodules', 'watchpoint', 'llgs', 'debugserver', 'libstdcxx', 'dwo', 'llgs', 'fork']

--
Command Output (stderr):
--
Change dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level
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-matrix/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 auto-confirm true
output: 

Adding tearDown hook:             lambda: self.runCmd("settings clear auto-confirm"))


runCmd: expr --top-level -- void func() {}
check of return status not required
runCmd failed!
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run


Ran command:
"expr --top-level -- void func() {}"

Got output:
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run

Expecting sub string: "Top-level code needs to be inserted into a runnable target" (was found)

runCmd: expr --top-level -- template<typename T> struct StructT { T m; };
check of return status not required
runCmd failed!
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run


Ran command:
"expr --top-level -- template<typename T> struct StructT { T m; };"

Got output:
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run

Expecting sub string: "Top-level code needs to be inserted into a runnable target" (was found)

runCmd: expr --top-level -- struct Struct { int i; };
check of return status not required
runCmd failed!
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run


Ran command:
"expr --top-level -- struct Struct { int i; };"

Got output:
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run

Expecting sub string: "Top-level code needs to be inserted into a runnable target" (was found)

Executing tearDown hook:             lambda: self.runCmd("settings clear auto-confirm"))


runCmd: settings clear auto-confirm
output: 

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang-x86_64) :: test_top_level_expression_without_target_dsym (TestTopLevelExprs.TopLevelExpressionsTestCase)
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-matrix/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 auto-confirm true
output: 

Adding tearDown hook:             lambda: self.runCmd("settings clear auto-confirm"))


runCmd: expr --top-level -- void func() {}
check of return status not required
runCmd failed!
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run


Ran command:
"expr --top-level -- void func() {}"

Got output:
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run

Expecting sub string: "Top-level code needs to be inserted into a runnable target" (was found)

runCmd: expr --top-level -- template<typename T> struct StructT { T m; };
check of return status not required
runCmd failed!
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run


Ran command:
"expr --top-level -- template<typename T> struct StructT { T m; };"

Got output:
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run

Expecting sub string: "Top-level code needs to be inserted into a runnable target" (was found)

runCmd: expr --top-level -- struct Struct { int i; };
check of return status not required
runCmd failed!
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run


Ran command:
"expr --top-level -- struct Struct { int i; };"

Got output:
error: expression failed to parse:
error: Top-level code needs to be inserted into a runnable target, but the target can't be run

Expecting sub string: "Top-level code needs to be inserted into a runnable target" (was found)

Executing tearDown hook:             lambda: self.runCmd("settings clear auto-confirm"))


runCmd: settings clear auto-confirm
output: 

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang-x86_64) :: test_top_level_expression_without_target_dwarf (TestTopLevelExprs.TopLevelExpressionsTestCase)
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang-x86_64) :: test_top_level_expression_without_target_dwo (TestTopLevelExprs.TopLevelExpressionsTestCase) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang-x86_64) :: test_top_level_expression_without_target_gmodules (TestTopLevelExprs.TopLevelExpressionsTestCase) (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-matrix/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 auto-confirm true
output: 

Adding tearDown hook:             lambda: self.runCmd("settings clear auto-confirm"))


make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/expression/top-level/TestTopLevelExprs.test_top_level_expressions_dsym -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level/Makefile MAKE_DSYM=YES all ARCH=x86_64 'CC="/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang"' DSYMUTIL=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil CODESIGN=codesign CLANG_MODULE_CACHE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api USE_HERMETIC_LIBCPP=1

FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang-x86_64) :: test_top_level_expressions_dsym (TestTopLevelExprs.TopLevelExpressionsTestCase)
Executing tearDown hook:             lambda: self.runCmd("settings clear auto-confirm"))


runCmd: settings clear auto-confirm
output: 

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-matrix/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 auto-confirm true
output: 

Adding tearDown hook:             lambda: self.runCmd("settings clear auto-confirm"))


make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/expression/top-level/TestTopLevelExprs.test_top_level_expressions_dwarf -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level/Makefile MAKE_DSYM=NO all ARCH=x86_64 'CC="/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang"' DSYMUTIL=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil CODESIGN=codesign CLANG_MODULE_CACHE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api USE_HERMETIC_LIBCPP=1

FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang-x86_64) :: test_top_level_expressions_dwarf (TestTopLevelExprs.TopLevelExpressionsTestCase)
Executing tearDown hook:             lambda: self.runCmd("settings clear auto-confirm"))


runCmd: settings clear auto-confirm
output: 

UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang-x86_64) :: test_top_level_expressions_dwo (TestTopLevelExprs.TopLevelExpressionsTestCase) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang-x86_64) :: test_top_level_expressions_gmodules (TestTopLevelExprs.TopLevelExpressionsTestCase) (test case does not fall in any category of interest for this run) 
Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/test
======================================================================
ERROR: test_top_level_expressions_dsym (TestTopLevelExprs.TopLevelExpressionsTestCase)
----------------------------------------------------------------------
Error when building test subject.

Build Command:
make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/expression/top-level/TestTopLevelExprs.test_top_level_expressions_dsym -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level/Makefile MAKE_DSYM=YES all ARCH=x86_64 'CC="/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang"' DSYMUTIL=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil CODESIGN=codesign CLANG_MODULE_CACHE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api USE_HERMETIC_LIBCPP=1

Build Command Output:
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make/Makefile.rules \
		CXX_SOURCES=dummy.cpp EXE=dummy
"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang"  -std=c++11 -g -O0 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk" -arch x86_64  -I/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../../include -I/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make -I/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h  -fno-limit-debug-info     --driver-mode=g++ -MT dummy.o -MD -MP -MF dummy.d -c -o dummy.o /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level/dummy.cpp
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level/dummy.cpp:13:3: error: use of undeclared identifier 'printf'
  printf("This is a dummy\n"); // Set breakpoint here
  ^
1 error generated.
make[1]: *** [dummy.o] Error 1
make: *** [dummy] Error 2

Test Directory:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level
======================================================================
ERROR: test_top_level_expressions_dwarf (TestTopLevelExprs.TopLevelExpressionsTestCase)
----------------------------------------------------------------------
Error when building test subject.

Build Command:
make VPATH=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/commands/expression/top-level/TestTopLevelExprs.test_top_level_expressions_dwarf -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level -I /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make -f /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level/Makefile MAKE_DSYM=NO all ARCH=x86_64 'CC="/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang"' DSYMUTIL=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil CODESIGN=codesign CLANG_MODULE_CACHE_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api USE_HERMETIC_LIBCPP=1

Build Command Output:
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make/Makefile.rules \
		CXX_SOURCES=dummy.cpp EXE=dummy
"/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_900_build/bin/clang"  -std=c++11 -g -O0 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk" -arch x86_64  -I/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../../include -I/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make -I/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h  -fno-limit-debug-info     --driver-mode=g++ -MT dummy.o -MD -MP -MF dummy.d -c -o dummy.o /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level/dummy.cpp
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level/dummy.cpp:13:3: error: use of undeclared identifier 'printf'
  printf("This is a dummy\n"); // Set breakpoint here
  ^
1 error generated.
make[1]: *** [dummy.o] Error 1
make: *** [dummy] Error 2

Test Directory:
/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/API/commands/expression/top-level
----------------------------------------------------------------------
Ran 8 tests in 0.242s

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

--