Commit graph

32 commits

Author SHA1 Message Date
Eric Snow
0d7e0d2656
Wait-on-exit before sending "disconnect" response. (#475)
(fixes gh-459)

We must wait-for-user before the "disconnect" response is sent. This PR fixes that.
2018-06-14 15:50:50 -06:00
Fabio Zadrozny
8427816fca Fixes #338 (output is no longer buffered). (#476) 2018-06-14 11:01:24 -07:00
Eric Snow
d498fd3582
Remove code duplication in runner.py. (#469)
(fixes gh-464)

The code in ptvsd/runner.py was originally copied from elsewhere and slightly adapted. Over time the APIs diverged, which lead to the failure in gh-464. This PR fixes the problem by getting rid of the code duplication.
2018-06-12 17:32:47 -06:00
Eric Snow
617727ef7c
Clean up session handling in the daemon. (gh-463)
This is part of the effort to fix gh-459. While it doesn't fix it, it does clean up the Daemon code a little and resolves a potential issue with session lifecycle handling. The solution for gh-459 will build on this.
2018-06-07 11:52:35 -06:00
Eric Snow
e01084a991
Get the tests working on Windows. (#455) 2018-05-31 16:06:08 -06:00
Fabio Zadrozny
4add62eb58 When a thread is created, notify about it as soon as possible. (#430)
Fixes #106
* When a thread is created, notify about it as soon as possible.
* Properly mark internal threads as pydevd daemon threads.
Also fix tests to consider that the event related to thread
creation is given as the thread starts to run.
* Fix test flakiness and improve error message when messages are not equal.
2018-05-30 09:18:27 -07:00
Eric Snow
322f694601
Support re-attaching to an adapter. (#381)
(fixes #208)

Currently when ptvsd starts up (as server) it listens for a connection and shuts down when the debug session is done. This prevents re-attach. To fix this we go back to listening for a connection after getting a "disconnect" (or the client closes the connection).
2018-05-22 16:50:55 -06:00
Eric Snow
105032c3ae
Run most of the tests under Python 2. (#405) 2018-05-02 18:05:13 -06:00
Karthik Nadig
41d362708f
Fix for DownloadCommandTests and CheckCommandTests (#390)
* Fix for DownloadCommandTests and CheckCommandTests

* Using os.linesep as per review comments
2018-04-30 09:52:11 -07:00
Eric Snow
ca5327530f
Wait until the end of VSCodeMessageProcessor.start() to start handling incoming messages. (#371)
* Do not process messages until start() is done.

* Drop hacks from tests.
2018-04-18 11:29:05 -06:00
Karthik Nadig
bb18114b7b
Implement hit condition breakpoint (#359)
* Implement hit condition breakpoint

* Fix tests to support hit-conditions
2018-04-16 16:17:44 -07:00
Eric Snow
8354b6d01b Wait for the "output" event. 2018-04-11 22:52:28 +00:00
Eric Snow
ecf53a146c Wait for the "output" event. 2018-04-11 22:12:38 +00:00
Eric Snow
2b410e263e Do not hardcode the ptvsd version. 2018-04-11 21:44:19 +00:00
Eric Snow
fba3fd0e91 Add lifecycle tests. 2018-04-11 21:44:19 +00:00
Eric Snow
041c197269 Factor out a Lockfile testing helper. 2018-04-11 21:44:19 +00:00
Eric Snow
3ee5990e32 Add tests for ptvsd.debugger.debug(). 2018-04-11 21:44:19 +00:00
Eric Snow
6cc5cca1fb Add DebugClient.host_local_debugger(). 2018-04-11 21:44:19 +00:00
Eric Snow
278640d0ec FakeEditor -> DebugClient. 2018-04-11 21:44:19 +00:00
Eric Snow
72be9f33e0 Move DebugSession to its own module. 2018-04-11 21:44:19 +00:00
Eric Snow
7be33ed9d2 Add the Proc testing helper. 2018-04-11 21:44:19 +00:00
Eric Snow
f9666d5147 Add TestsBase.pathentry. 2018-04-11 21:44:19 +00:00
Eric Snow
9f88f6fefd Add test_failure(). 2018-04-11 21:44:19 +00:00
Eric Snow
2061239672 Check the exit code. 2018-04-11 21:44:19 +00:00
Eric Snow
bf3e2412ff Add test_run_to_completion(). 2018-04-11 21:44:19 +00:00
Eric Snow
38e5592480 Add a test to ensure script args are honored. 2018-04-11 21:44:19 +00:00
Eric Snow
67dea3a85a Add a full-stack test for an adapter with no messages. 2018-04-11 21:44:18 +00:00
Eric Snow
d6dbc09baf Skip network-dependent tests during CI. 2018-03-05 23:59:40 +00:00
Eric Snow
b646cc50e7 Add a docstring to clarify the purpose of some tests. 2018-01-22 17:42:39 +00:00
Eric Snow
1e54875b7d Drop an unnecessary check. 2018-01-22 17:39:52 +00:00
Eric Snow
73b914c2f6 Add "system" tests for the schema script. 2018-01-11 22:04:17 +00:00
Eric Snow
65fff09ee5 Add a test that actually checks the vendored schema against upstream. 2018-01-11 17:29:35 +00:00