At the moment, I'm seeing two issues with the unit tests on my machine.
First, TestBase.LaunchModePreservesEnvironment is failing:
[ RUN ] TestBase.LaunchModePreservesEnvironment
/Users/vsk/src/llvm.org-lldbsan/llvm/tools/lldb/unittests/tools/lldb-server/tests/LLGSTest.cpp:30: Failure
Value of: llvm::detail::TakeExpected(Client.GetLatestStopReplyAs<StopReplyExit>())
Expected: succeeded with value (is an object whose given property is equal to 2-byte object <00-00>)
Actual: succeeded with value 16-byte object <10-60 A7-04 01-00 00-00 01-00 00-00 00-00 00-30>, whose given property is 2-byte object <00-01>(is an object whose given property isn't equal to 2-byte object <00-00>)
[ FAILED ] TestBase.LaunchModePreservesEnvironment (67 ms)
Second, TestClient::SendMessage is generating quite a lot of "INFO" output which clutters up the terminal. Pavel, would you mind if I removed this logging?
Yeah, we should probably do that. The idea here was that the packet
log would provide you with additional context for the situation when
the test fails, but it *is* very verbose. I'll have to come up with a
better solution for error reporting here.
Yeah, if a lit test fails, the dotest tests will not get run. That is
fine, but having a target which only runs dotest tests would probably
be nice as well.
That's because the tests run inferiors and lldb on windows will always
run them in a separate console window. IIRC, there is a special hack
in dotest, which prevents opening windows for testing. You probably
need something like that for lit tests as well.
At the moment, I'm seeing two issues with the unit tests on my machine.
First, TestBase.LaunchModePreservesEnvironment is failing:
[ RUN ] TestBase.LaunchModePreservesEnvironment
/Users/vsk/src/llvm.org-lldbsan/llvm/tools/lldb/unittests/tools/lldb-server/tests/LLGSTest.cpp:30: Failure
Value of: llvm::detail::TakeExpected(Client.GetLatestStopReplyAs<StopReplyExit>())
Expected: succeeded with value (is an object whose given property is equal to 2-byte object <00-00>)
Actual: succeeded with value 16-byte object <10-60 A7-04 01-00 00-00 01-00 00-00 00-00 00-30>, whose given property is 2-byte object <00-01>(is an object whose given property isn't equal to 2-byte object <00-00>)
[ FAILED ] TestBase.LaunchModePreservesEnvironment (67 ms)
Second, TestClient::SendMessage is generating quite a lot of "INFO" output which clutters up the terminal. Pavel, would you mind if I removed this logging?
^ I'll let Pavel decide the best way to deal with this one.