OSDN Git Service

[lldb/test] Use @skipIfWindows for PExpectTest
authorJordan Rupprecht <rupprecht@google.com>
Fri, 28 Aug 2020 18:41:07 +0000 (11:41 -0700)
committerJordan Rupprecht <rupprecht@google.com>
Fri, 28 Aug 2020 18:41:07 +0000 (11:41 -0700)
commite5e05ecf65aba836802154279efbc8cbce6fe2ea
treeef3cb0a173d13ecb55dba5213bfae5cb683ac799
parent73f4317ffd5608de4e56bb39faf595acd01dca95
[lldb/test] Use @skipIfWindows for PExpectTest

Annotating `PExpectTest` with `@skipIfWindows` instead of marking it as an empty class will make the test runner recognize it as a test class, which should allow me to reland adb5c23f8c0d60eeec41dcbe21d1b26184e1c97d.

I don't have a windows machine to verify this works, but I did some tests using `@skipIfLinux` and they all worked as expected. In case the `pexpect` import is not at all available on windows, I moved it to within the method where it's used.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D86745
lldb/packages/Python/lldbsuite/test/lldbpexpect.py