Repository navigation
0.11.1: a command is held to what its case has left - #27
Merged
Merged
Conversation
time_left() states what the running case has left of its timeout and its scopes'; e2e::run holds a command to it, less a tenth (at most five seconds) the case keeps for its report, and says so (outcome::case_limit).
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A command an end-to-end case runs keeps its own limit (
command::timeout, 60 s by default; mcpp's kit uses 10 min), whatever the case states: a command that hangs in a case of 5 minutes runs on until the runner ends the whole program at its limit, and the case's outputs and its later cases are lost.time_left()states what the running case has left: the earliest end of its owntimeoutand of each scope's around it, each counted from when it began; nothing when none states one.e2e::runholds a command to it, less a tenth (at most five seconds) the case keeps for its report. The outcome'scase_limitand the failure's text (the time its case had left) state why it ended.lib/tests/children.cpp(a 30 s child in a 5 s case ends under 5 s; a case with no time keeps the command's own limit).mcpp's test kit uses it (mcpp-community/mcpp#984, design 2026-11-20 §5.16 K1).