Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runTests: propagate signal when subprocess terminated #56

Merged
merged 1 commit into from
Apr 10, 2020

Conversation

jcreedcmu
Copy link
Contributor

While investigating a SIGSEGV which intermittently terminates an
invocation of

.vscode-test/vscode-1.42.1/VSCode-linux-x64/code
 --disable-extensions --extensionDevelopmentPath=$DEVELOPMENT_PATH \
 --extensionTestsPath=$EXTENSION_TESTS_PATH/index;

spawned by vscode-test, I found it desirable to determine whether
the test runner was terminating due to test failures or that SIGSEGV
signal. In general, I think it would be useful for the vscode-test
client to have this information.

The documentation says:

If the process terminated due to receipt of a signal, signal is the
string name of the signal, otherwise null. One of the two [i.e. `code`
and `signal`] will always be non-null.

While investigating a SIGSEGV which intermittently terminates an
invocation of

```
.vscode-test/vscode-1.42.1/VSCode-linux-x64/code
 --disable-extensions --extensionDevelopmentPath=$DEVELOPMENT_PATH \
 --extensionTestsPath=$EXTENSION_TESTS_PATH/index;
```

spawned by `vscode-test`, I found it desirable to determine whether
the test runner was terminating due to test failures or that SIGSEGV
signal. In general, I think it would be useful for the `vscode-test`
client to have this information.

The [documentation][1] says:
```
If the process terminated due to receipt of a signal, signal is the
string name of the signal, otherwise null. One of the two [i.e. `code`
and `signal`] will always be non-null.
```

[1]: https://nodejs.org/api/child_process.html#child_process_event_exit
@octref
Copy link
Contributor

octref commented Apr 10, 2020

LGTM, thanks 👍

@octref octref merged commit 5f6c7d5 into microsoft:master Apr 10, 2020
octref added a commit that referenced this pull request Apr 10, 2020
@octref octref modified the milestones: March 2020, April 2020 Apr 10, 2020
@ckant ckant mentioned this pull request May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants