Repository navigation
0.11.4: the doctest adapter reports what doctest knows; the protocol's variables stay out of what a case starts - #32
Open
ZheFeng7110 wants to merge 2 commits into
Conversation
… an exception (mcpp-community#29) Of two cases with one name the later is <suite>/<name>mcpp-community#2. should_fail and expected_failures(n) are listed expect: fail and end xfail or xpass; may_fail stays pass. doctest::timeout is listed as the case's timeout. An exception or a crash fails at the case's place. The conformance suite holds an implementation below level 3 that expresses an expected failure to its xfail. 0.11.4.
…ts (P2.2, mcpp-community#29) The adapters read the handshake once, then remove its variables from the C library's environment before any case runs, so a test program a case starts does not append to its parent's report. mcpplibs.os states no change to a program's own environment (mcpplibs/os#29), so the adapters call the host's C library. The doctest adapter's own test checks a case and a program it starts under mcpp test; CI runs it.
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.
The doctest adapter reports what doctest knows, and the adapters keep the protocol's variables from what a case starts. Closes #29.
<suite>/<name>#2;namestays doctest's, and--split casegives each its process.should_failandexpected_failures(n)are listedexpect: "fail"; a case endsxfailwhen it fails as expected (expected_failures: exactlyntimes),xpasswhen nothing fails,failwhen it fails another number of times.may_failstates no expectation and stayspass.doctest::timeout(s)is listed as the case'stimeout(doctest already folds a suite's into it).TEST_CASEline, not:0.mcpplibs.osstates no change to a program's own environment (openkal's set does not change while a program runs), so the adapters call the host's C library (unsetenv,_putenv_s); env: a way for a program to keep variables from the programs it starts (mtest protocol P2.2) mcpplibs/os#29 asks its maintainers how the library should express this. The librarymcpplibs.mteststill strips the variables only from whate2e::runstarts.expected to failto itsxfail; the doctest fixture expresses it.adapters/doctest/tests/handshake.cpp): a case and a program it starts see no protocol variable; CI runs it. It fails with the removal taken out.maincomes from a header declares it.Checked locally (mcpp 2026.11.20.1, gcc 16.1.0, Linux x86_64):
mcpp test -pformcpplibs.mtest,mcpplibs.mtest.manifest,mtest.mtest,conformance,mcpplibs.mtest.doctest; the conformance suite against every fixture; the probe of #29, whose five observations no longer hold. The Windows branch of the variables' removal is not built by CI (the adapters are not in the image matrix).