-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nextest-runner] make Windows job object termination clearer
In case of a Ctrl-C grace period expiring, we should make it clear to users what's happening rather than just printing out "FAIL". Also make a slight formatting tweak.
- Loading branch information
1 parent
c612aea
commit fcddf22
Showing
12 changed files
with
275 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...c/reporter/snapshots/nextest_runner__reporter__displayer__windows_tests__ctrl_c_code.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
source: nextest-runner/src/reporter/displayer.rs | ||
expression: buf | ||
expression: "to_message_line(AbortStatus::WindowsNtStatus(STATUS_CONTROL_C_EXIT))" | ||
snapshot_kind: text | ||
--- | ||
with code 0xc000013a: {Application Exit by CTRL+C} | ||
- The application terminated as a result of a CTRL+C. (os error 572) | ||
- with code 0xc000013a: {Application Exit by CTRL+C} | ||
- The application terminated as a result of a CTRL+C. (os error 572) |
6 changes: 6 additions & 0 deletions
6
...rc/reporter/snapshots/nextest_runner__reporter__displayer__windows_tests__job_object.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: nextest-runner/src/reporter/displayer.rs | ||
expression: "to_message_line(AbortStatus::JobObject)" | ||
snapshot_kind: text | ||
--- | ||
- terminated via job object |
4 changes: 2 additions & 2 deletions
4
...r/snapshots/nextest_runner__reporter__displayer__windows_tests__stack_violation_code.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
source: nextest-runner/src/reporter/displayer.rs | ||
expression: to_message_line(STATUS_CONTROL_STACK_VIOLATION) | ||
expression: "to_message_line(AbortStatus::WindowsNtStatus(STATUS_CONTROL_STACK_VIOLATION))" | ||
snapshot_kind: text | ||
--- | ||
with code 0xc00001b2: Invalid access to memory location. (os error 998) | ||
- with code 0xc00001b2: Invalid access to memory location. (os error 998) |
Oops, something went wrong.