Repository navigation
0.5.2: a copy of a test program that does something else is an object (child) - #9
Merged
Merged
Conversation
… (child) A test that starts copies of itself declares what a copy does (`child`) and starts one with `child_command(name, args)`; the entry enters the child named by the copy's arguments before any case. Such a file defines no `main`, so the files of one directory are one program however many of them start copies. Co-authored-by: speak-agent <[email protected]>
…t the package's entry; sources as clang-format writes them Co-authored-by: speak-agent <[email protected]>
Co-authored-by: speak-agent <[email protected]>
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.
Summary
child{name, body}declares what a copy of the test program does;child_command(name, args)is the program again as that child. mtest's entry enters the child named by--mtest-child <name>before any case; the copy runs no case and reports nothing; an undeclared name exits 2.main, and the files of one directory are one program (mcpp[test] programs = "directory") however many of them start copies.docs/layout.mdandlib/docs/writing-tests.mdstate the form.Tests
lib/tests/children.cpp(nomain; the package's entry begins it): a child runs with the arguments after its name and its exit status; an undeclared name is refused.Co-authored-by: speak-agent [email protected]