Skip to content

Many lldb-dap TestDAP_Launch.py tests fail on Windows due to get_stdout() #137599

Open
@DavidSpickett

Description

@DavidSpickett

For example: https://lab.llvm.org/buildbot/#/builders/141/builds/8271

FAIL: test_args (TestDAP_launch.TestDAP_launch.test_args)

    Tests launch of a simple program with arguments

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

Traceback (most recent call last):

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\tools\lldb-dap\launch\TestDAP_launch.py", line 245, in test_args

    self.assertTrue(output and len(output) > 0, "expect program output")

AssertionError: None is not true : expect program output

Config=aarch64-C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe

======================================================================

FAIL: test_cwd (TestDAP_launch.TestDAP_launch.test_cwd)

    Tests the default launch of a simple program with a current working

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

Traceback (most recent call last):

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\tools\lldb-dap\launch\TestDAP_launch.py", line 109, in test_cwd

    self.assertTrue(output and len(output) > 0, "expect program output")

AssertionError: None is not true : expect program output

Config=aarch64-C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe

======================================================================

FAIL: test_default (TestDAP_launch.TestDAP_launch.test_default)

    Tests the default launch of a simple program. No arguments,

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

Traceback (most recent call last):

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\tools\lldb-dap\launch\TestDAP_launch.py", line 26, in test_default

    self.assertTrue(output and len(output) > 0, "expect program output")

AssertionError: None is not true : expect program output

Config=aarch64-C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe

======================================================================

FAIL: test_environment_with_array (TestDAP_launch.TestDAP_launch.test_environment_with_array)

    Tests launch of a simple program with environment variables

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

Traceback (most recent call last):

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\tools\lldb-dap\launch\TestDAP_launch.py", line 304, in test_environment_with_array

    self.assertTrue(output and len(output) > 0, "expect program output")

AssertionError: None is not true : expect program output

Config=aarch64-C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe

======================================================================

FAIL: test_environment_with_object (TestDAP_launch.TestDAP_launch.test_environment_with_object)

    Tests launch of a simple program with environment variables

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

Traceback (most recent call last):

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\tools\lldb-dap\launch\TestDAP_launch.py", line 275, in test_environment_with_object

    self.assertTrue(output and len(output) > 0, "expect program output")

AssertionError: None is not true : expect program output

Config=aarch64-C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe

======================================================================

FAIL: test_shellExpandArguments_disabled (TestDAP_launch.TestDAP_launch.test_shellExpandArguments_disabled)

    Tests the default launch of a simple program with shell expansion

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

Traceback (most recent call last):

  File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\tools\lldb-dap\launch\TestDAP_launch.py", line 225, in test_shellExpandArguments_disabled

    self.assertTrue(output and len(output) > 0, "expect no program output")

AssertionError: None is not true : expect no program output

Config=aarch64-C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe

All these tests call self.get_stdout() which returns None despite the program printing output as expected:

C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build>C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\lldb-test-build.noindex\tools\lldb-dap\launch\TestDAP_launch.test_default\a.out
arg[0] = "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\lldb-test-build.noindex\tools\lldb-dap\launch\TestDAP_launch.test_default\a.out"
env[0] = "ALLUSERSPROFILE=C:\ProgramData"
<...>
cwd = "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build"

I notice that all other tests using self.get_stdout() in other files have been skipped on Windows too.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions